Filters elements from an iterable on a value or a filtering function.
The iterable or async iterable to filter.
The value or filtering function used for filtering elements.
The filtered iterable.
// Returns an Iterable representing [1, 1]it.filter([1, 2, 3, 1], x => x < 2) Copy
// Returns an Iterable representing [1, 1]it.filter([1, 2, 3, 1], x => x < 2)
// Returns an Iterable representing [1, 1]it.filter([1, 2, 3, 1], 1) Copy
// Returns an Iterable representing [1, 1]it.filter([1, 2, 3, 1], 1)
This is the curried form of filter.
Filters elements from an iterable on a value or a filtering function.