@unction/mapvalues
v10.13.0
Published
A regular ol' map over values (fantasy land)
Downloads
341
Readme
@unction/mapValues
MapperFunctionType<A, B> => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array | Set | Record<string | number | symbol, unknown> | Map<B, unknown> | string
A pretty standard mapValues()
, but with enforced unary currying.
mapValues(
(value) => value + 1
)(
[1, 2, 3]
)
Which will return:
[2, 3, 4]