@unction/replacewhen
v11.14.0
Published
Replaces values in an iterable with another value based on a predicate
Readme
@unction/replacewhen
PredicateFunctionType => B => Function
Replaces values in an functor with another value based on a predicate.
replaceWhen(isEven)(null)([1, 2, 3]) // [1, null, 3]