diff options
Diffstat (limited to 'build/modules-es6/iterator.js')
-rw-r--r-- | build/modules-es6/iterator.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/build/modules-es6/iterator.js b/build/modules-es6/iterator.js deleted file mode 100644 index 6b63afb..0000000 --- a/build/modules-es6/iterator.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -export 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); -}
\ No newline at end of file |