compact()

Create a new array with all of the false-ish values removed.

This function is valid in v2.1.0 to v2.12.0. This function has been downloaded 10 times.

Parameter

{Array} arr
Array of values to comb through.

Returns

{Array}
A new array with only the non-false-ish (not false, undefined, null, "", 0, etc.) values found in arr.