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

8.13.0 • Public • Published

@unction/reduceValues

Tests Stability Dependencies

ReducerFunctionType<A, B | C, D> => C => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => D

Reduce over a iterable's values.

reduceValues(
  (accumulation) => (current) => `${accumulation}/${current}`
)(
  "~"
)(
  ["Users", "krainboltgreene", "Code"]
)

Which will return:

"~/Users/krainboltgreene/Code"

Readme

Keywords

Package Sidebar

Install

npm i @unction/reducevalues

Weekly Downloads

33

Version

8.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

15.5 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene