1.0.0 • Published 8 years ago

for-do v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

for-do

Features

  • Simple counting-down loop

Examples

for(...).do(...)

var fd = require('for-do');
fd.for(10).do((count) => console.log(`countdown: ${count}`));

for...of...

var fd = require('for-do');
for (let count of fd.for(10)) {
	console.log(`countdown: ${count}`);
}
  • FACT: This package is bases on x-iterable and creates XIterable objects, which means that the object also has ::forEach, ::map, ::every, ::some, ... methods, use them wisely
1.0.0

8 years ago