Keep only elements for which predicate returns true. Index is passed as the second arg.
predicate
true
Dual API — works data-first or curried for use in pipe.
pipe
pipe( users, Arrays.filter((u) => u.active), ) Copy
pipe( users, Arrays.filter((u) => u.active), )
Keep only elements for which
predicatereturnstrue. Index is passed as the second arg.Dual API — works data-first or curried for use in
pipe.