Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Latest commit

 

History

History
22 lines (13 loc) · 300 Bytes

Readme.md

File metadata and controls

22 lines (13 loc) · 300 Bytes

reduce

reduce anything

Installation

Install with component(1):

$ component install yields/reduce

Example

assert(3 == reduce({ a: 1, b: 2 }, sum, 0));
assert(3 == reduce([1, 2], sum, 0));
assert(198 == reduce('abc', sum, 0));

License

MIT