1.0.7 • Published 7 years ago

each-recursive v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

each-recursive

replace foreach with recursion

Install

npm i -s each-recursive

Import

import eachRecursive from "each-recursive";

Use

eachRecursive(["thanks", "all"], (item, index) => console.log(item, index));
// thanks 0, all 1

eachRecursive({ a: 1, b: 2, c: 3 }, (key, value) => console.log(key, value));
// a 1, b 2, c 3
1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago