flattenarray-node
v1.0.0
Published
flatten a array of element given
Downloads
4
Readme
flattenarray-node
flatten a array of elemts given
install
npm install flattenarray-node
Use
const flatten = require('flattenarray-node')
let arrayToFlatten = [[1,2,[3]],4]
flatten(arrayToFlatten)// -> [1,2,3,4]
API
flatten(arrayToFlatten [, arrayFlatten])
Receive the array to be flatten and the array where store the array flatten.