concatAll

1.0.6 • Public • Published

Travis Build PRs Welcome

concatAll

Array helper to concat arrays - convert a multidimensional array into a single dimensional array

Installation

To install the stable version:

npm install concatAll --save

How to use

Pretty simple

require('concatAll');

Example

require('concatAll');

let crazyData = [1, 2, 3, [4,5], 6, 7, 8, [9,], [], [10, [11], [12]], 13, 14];

let result = crazyData.concatAll();

console.log(result);

//=> result = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]

Package Sidebar

Install

npm i concatAll

Weekly Downloads

6

Version

1.0.6

License

MIT

Unpacked Size

2.63 kB

Total Files

8

Last publish

Collaborators

  • abdalla