Package Exports
- @skt-t1-byungi/array-reduce
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@skt-t1-byungi/array-reduce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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