Or even in ES5...
[].filter(function(item) { return item != null; });
It's not patched on the prototype, but I'm not sure why something that simple needs to be.
[].filter(function(item) { return item != null; });
It's not patched on the prototype, but I'm not sure why something that simple needs to be.