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

11.14.0 • Public • Published

@unction/replacewhen

Tests Stability Dependencies

PredicateFunctionType => B => Function

Replaces values in an functor with another value based on a predicate.

replaceWhen(isEven)(null)([1, 2, 3]) // [1, null, 3]

Readme

Keywords

Package Sidebar

Install

npm i @unction/replacewhen

Weekly Downloads

0

Version

11.14.0

License

SEE LICENSE IN LICENSE

Unpacked Size

16.9 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene