@skt-t1-byungi/array-flat

flat() for old browser, in typescript.

Usage no npm install needed!

<script type="module">
  import sktT1ByungiArrayFlat from 'https://cdn.skypack.dev/@skt-t1-byungi/array-flat';
</script>

README

@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