@skt-t1-byungi/array-flat-map
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@skt-t1-byungi/array-flat-map

flatMap() for old browser, in typescript.

Example

flatMap([1, 2], x => [x, x * 2])
// => [1, 2, 2, 4]

flatMap(array, mapper, [thisArg])

array

Target array.

mapper

Function that produces an element of the new Array.

thisArg

Value to use as this when executing callback.

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @skt-t1-byungi/array-flat-map

      Weekly Downloads

      1

      Version

      0.2.0

      License

      MIT

      Unpacked Size

      1.56 kB

      Total Files

      4

      Last publish

      Collaborators

      • skt-t1-byungi