1
嗨基本的問題,我與下劃線從嵌套數組返回的所有對象
var objs = [ {name:'obj_1', evidence:[2] }, {name:'obj_2', evidence[1] } ]
掙扎,我想返回的所有3證據對象數組
我至今是
_.filter(objs, function(obj) {
if (obj.evidence.length > 0) {
_.each(obj, function(x) { return x })
}
})