Returns all items in an array that meet the predicate, or the fallback if list is null or undefined.
list
filter([])(isOdd)([3, 6, 9])// => [3, 9]filter([])(isOdd)(undefined)// => [] Copy
filter([])(isOdd)([3, 6, 9])// => [3, 9]filter([])(isOdd)(undefined)// => []
Generated using TypeDoc
Returns all items in an array that meet the predicate, or the fallback if
list
is null or undefined.