lib/lib.js
function(lastValue) {
      //var currentItem
      if (current === len) {
        cb && cb(lastValue);
        return;
      }
      var item = items[current++];
      setTimeout(function() {
        fn(item, function(val) {
          process(val && lastValue);
        });
      }, 20);
    }
function(lastValue) {
      //var currentItem
      if (current === len) {
        cb && cb(lastValue);
        return;
      }
      var item = items[current++];
      setTimeout(function() {
        fn(item, function(val) {
          process(val && lastValue);
        });
      }, 20);
    }
function ( lastValue ) { //var currentItem if ( current === len ) { cb && cb ( lastValue ) ; return ; } var item = items [ current ++ ] ; setTimeout ( function ( ) { fn ( item , function ( val ) { process ( val && lastValue ) ; } ) ; } , 20 ) ; }
closure function to iterate over the items async
closure function to iterate over the items async