I have this array:
[null, {name:\'John\'}, null, {name:\'Jane\'}]
I want to remove the null values. Is there an easy way to do this with unders
This will work for you
Filter
_.filter(arr,function (value) { return value!==null; })
Reject
_.reject(arr,function (value) { return value===null; })