@unction/selectbyvalue
TypeScript icon, indicating that this package has built-in type declarations

1.13.0 • Public • Published

@unction/selectByValue

Tests Stability Dependencies

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]

Readme

Keywords

Package Sidebar

Install

npm i @unction/selectbyvalue

Weekly Downloads

0

Version

1.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

20.9 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene