0.2.1 • Published 5 years ago

@skt-t1-byungi/array-reduce v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@skt-t1-byungi/array-reduce

reduce() for old browser, in typescript.

Example

reduce([1, 2, 3], (acc, v) => acc + v)
// => 6

reduce(array, reducer, initValue)

array

Target array.

reducer

Function to execute on each element in the array. accumulates return values.

initValue

Value to use as the first argument to the first call.

License

MIT

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago