flatten-arrayjs
v0.1.5
Published
Flatten Deeply Nested Arrays
Downloads
15
Readme
Flatten Arrays
A small library that flatten deeply nested arrays
Installation
npm install flatten-arrayjs
Usage
let arr = [1,[2,3,[4,5,[6]]]];
var flat = require('flatten-arrayjs');
var formattedNum = flat(arr);
Output should be [1,2,3,4,5,6]
Tests
npm test
Contributing
Please contribute by adding more functions related to deeply nested arrays.