@skt-t1-byungi/array-reduce
v0.2.1
Published
reduce() for old browser, in typescript.
Downloads
9
Readme
@skt-t1-byungi/array-reduce
reduce() for old browser, in typescript.
Example
reduce([1, 2, 3], (acc, v) => acc + v)
// => 6reduce(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
