MapperFunctionType<A, B> => Array<A> | Set<A> | Record<string | number | symbol, B> | Map<B, A> | string => Array<B> | Set<B> | 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]