Skip to content

Cereceres/flatten-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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.

About

flatten a array of integers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages