funny-reduce
v1.0.3
Published
Simple modules for functional programming, done for fun.
Downloads
3
Maintainers
Readme
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.