diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-02-23 16:09:53 -0800 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-02-23 16:10:07 -0800 |
commit | 070ed49496d5cf0b3c31a8091608610961191238 (patch) | |
tree | e26f489e37ae3a227867b3d1dfe6c04afa361c23 /build/iterator.js | |
parent | 3cf46d01b44c31203f4e59db280378a58d760d0d (diff) | |
download | async-modularization.tar.gz |
gitignore build directoriesmodularization
Diffstat (limited to 'build/iterator.js')
-rw-r--r-- | build/iterator.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/build/iterator.js b/build/iterator.js deleted file mode 100644 index 98e3608..0000000 --- a/build/iterator.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -exports.default = function (tasks) { - function makeCallback(index) { - function fn() { - if (tasks.length) { - tasks[index].apply(null, arguments); - } - return fn.next(); - } - fn.next = function () { - return index < tasks.length - 1 ? makeCallback(index + 1) : null; - }; - return fn; - } - return makeCallback(0); -}; - -module.exports = exports['default'];
\ No newline at end of file |