filter
v0.9.6arrow_drop_downv0.9.6
STATUS
Passing
DOWNLOADS
18
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
2 KB
Takes a predicate and a `Filterable`, and returns a new filterable of the
1 contributor
Like
Install filter as a package?
Copied
npm i @bit/justin-capalbo.ramda.filter
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
filter (
pred:
Function
,filterable:
) : Array
Array
Takes a predicate and a Filterable
, and returns a new filterable of the
same type containing the members of the given filterable which satisfy the
given predicate. Filterable objects include plain objects or any object
that has a filter method such as Array
.
Dispatches to the filter
method of the second argument, if present.
Acts as a transducer if a transformer is given in list position.
Example
Arguments
pred:
Function
filterable:
Array
Returns
Array
Filterable