funny-reduce

1.0.3 • Public • Published

reduce

Simple modules for functional programming, done for fun.

Usage

import reduce from 'funny-reduce'

reduce((acc, item) => acc + item, [1, 2, 3, 4])     // 10
reduce((acc, item) => acc + item, [1, 2, 3, 4], 10) // 20

License

The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.

Package Sidebar

Install

npm i funny-reduce

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • goblindegook