JSPM

@skt-t1-byungi/array-reduce

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q32396F
  • License MIT

reduce() for old browser, in typescript.

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)
// => 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