📅  最后修改于: 2022-03-11 15:03:47.198000             🧑  作者: Mango
var evens = _.filter([{key: 1}, {key:2}, {key:3}, {key:4}, {key:5}, {key:6}], function(num){ return num.key % 2 == 0; });
=> [2, 4, 6]