jeach
use for iterator javascript array to generator function
Last updated 10 months ago by qimenxiaozi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install jeach 
SYNC missed versions from official npm registry.

generator-foreach

use generator function to iterator array in koa.

simple example

	yield forEach([1, 2, 3], function*(value) {
        let first = yield new Promise(function(resolve, reject) {
          resolve(value); 
        });

        let sec = yield new Promise(function(resolve, reject) {
          resolve(value); 
        });
        ....
    }

License

MIT

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
  • co ^4.6.0
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |