Reputation: 24208
I have an array of objects that each have a date property. For some of the objects, the "Date" property is blank. I want to remove those from my object so that my view doesn't end up with entries containing NaN for the date.
Here is what I have tried:
_.where(data, { 'Date': d.Date instanceof Date && isFinite(d) })
AND
_.where(data, function(d) {
return d.Date instanceof Date && isFinite(d.date);
});
Both return 0 results however.
Upvotes: 0
Views: 126