Node.js lodash filter() filter array
filter()
var _ = require('lodash'); var numbers = [1,2,3,4,5,6,7,8,9,10]; var results = _.filter(numbers, function(num) { return num > 5; });/*from ww w . j a v a 2 s . c o m*/ console.log(resutls);