@unction/reducekeys
v8.13.0
Published
Reduce over a iterable's keys
Downloads
106
Readme
@unction/reduceValues
ReducerFunctionType<A, B | C, D> => C => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => D
Reduce over a iterable's keys.
reduceValues(
(accumulation) => (current) => `${accumulation}/${current}`
)(
"~"
)(
["Users", "krainboltgreene", "Code"]
)
Which will return:
"~/0/1/2"