att
1/13/2019 - 9:59 PM

underscore

//To project to multiple properties, you need map, not pluck:

var results = _.map(
    _.where(people, {city : "ny"}), 
    function(person) {
        return { firstName: person.firstName, qty: person.qty };
    }
);


arr = _.reject(arr, function(item){ return (item.id === null || item.id === ??); });