1.0.7 • Published 5 years ago

each-recursive v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago