0.1.2 • Published 6 years ago

set-foreach v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

set-foreach

NOTE: set-foreach was renamed to @extra-set/for-each. NPM

Call a function for each value in set, like Array.forEach().

const forEach = require('set-foreach');
// forEach(<set>, <called function>, [this])

forEach(new Set('park'), (v) => console.log(v));
// p
// a
// r
// k
forEach(new Set('skate'), (v, k, set) => console.log(v.toUpperCase()), null);
// S
// K
// A
// T
// E
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago