@unction/selectbyvalue
v1.13.0
Published
Produces the set or subset based on a predicate run with each value
Downloads
38
Readme
@unction/selectByValue
PredicateFunctionType => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string
Given an enumerable and a predicate and produce the set or subset of that based on the predicate matched to the values.
selectByValue(isOdd)([1, 2, 3, 4]) // [1, 3]