0.2.0 • Published 5 years ago

@skt-t1-byungi/array-flat-map v0.2.0

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

@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

0.2.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago