Skip to content
ecmanPublic

About

Iterate recursively on a multi-dimensional array.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

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

About

Iterate recursively on a multi-dimensional array.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages