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
Try using _.without(array, *values) it will remove all the values that you don't need. In your case *values == null
_.without(array, *values)
http://underscorejs.org/#without