ramda Creates an array with all falsey values removed 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; });
}