summaryrefslogtreecommitdiff
path: root/build-es/iterator.js
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-02-23 16:09:53 -0800
committerAlexander Early <alexander.early@gmail.com>2016-02-23 16:10:07 -0800
commit070ed49496d5cf0b3c31a8091608610961191238 (patch)
treee26f489e37ae3a227867b3d1dfe6c04afa361c23 /build-es/iterator.js
parent3cf46d01b44c31203f4e59db280378a58d760d0d (diff)
downloadasync-modularization.tar.gz
gitignore build directoriesmodularization
Diffstat (limited to 'build-es/iterator.js')
-rw-r--r--build-es/iterator.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/build-es/iterator.js b/build-es/iterator.js
deleted file mode 100644
index 568171a..0000000
--- a/build-es/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);
-}