0.2.0 • Published 5 years ago

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

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

@skt-t1-byungi/array-flat

flat() for old browser, in typescript.

Example

flat([1, 2, [3, 4]])
// => [1, 2, 3, 4]

flat(array, depth = 1)

array

Target array.

depth

The depth level specifying how deep a nested array structure should be flattened. Defaults to 1.

License

MIT

0.2.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago