summaryrefslogtreecommitdiff
path: root/build/iterator.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/iterator.js')
-rw-r--r--build/iterator.js23
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