can you push falsy values to array code example
Example 1: can you push falsy values to array
var myFilterArray = myArray.filter(Boolean);
Example 2: can you push falsy values to array
function bouncer(arr) {
return arr.filter(function(v) { return !!v; });
}