npm.devtool.tech
👏 You can access array-flatten package with using arrayFlatten variable in browser devtools!
Flatten nested arrays

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

Array Flatten

NPM version NPM downloads Build status Test coverage Bundle size

Flatten nested arrays.

Installation

npm install array-flatten --save

Usage

import { flatten } from "array-flatten";

flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]);
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]

(function() {
  flatten(arguments); //=> [1, 2, 3]
})(1, [2, 3]);

License

MIT

🔎Explore Package🔎CDN Script

Score

Popularity56/100
Quality99/100
Maintenance100/100