flatible

1.0.6 • Public • Published

flatible

build status codecov Code Climate

Iterate recursively on a multi-dimensional array

Usage

const flatible = require('flatible');
const someArray = [["one", ["two", [3, "FOUR"]]], 5];
 
for (let someValue of flatible(someArray)) {
  console.log(someValue);
}

Output:

one
two
3
FOUR
5

Package Sidebar

Install

npm i flatible

Weekly Downloads

11

Version

1.0.6

License

MIT

Last publish

Collaborators

  • ecman