Creates a new generator that filters all falsy and empty values from iterable.
A new array with the filtered values.
compact([0, 1, false, 2, '', 3])// [1, 2, 3]
Generated using TypeDoc
Creates a new generator that filters all falsy and empty values from iterable.
Returns
A new array with the filtered values.
Example