array-flatten
Flatten nested arrays
Last updated 8 months ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install array-flatten 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (8 months ago)

12 Versions

  • 3.0.0                                ...           8 months ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 20,740
This Week 129,173
This Month 312,253
Last Day 55,944
Last Week 285,752
Last Month 1,203,121
Dependencies (0)
None
Dev Dependencies (14)
Dependents (429)

Copyright 2014 - 2017 © taobao.org |