JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36431074
  • Score
    100M100P100Q247624F
  • License MIT

Flatten nested arrays

Package Exports

  • array-flatten

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-flatten) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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