Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
501 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var serialOrdered = require('./serialOrdered.js');
|
---|
| 2 |
|
---|
| 3 | // Public API
|
---|
| 4 | module.exports = serial;
|
---|
| 5 |
|
---|
| 6 | /**
|
---|
| 7 | * Runs iterator over provided array elements in series
|
---|
| 8 | *
|
---|
| 9 | * @param {array|object} list - array or object (named list) to iterate over
|
---|
| 10 | * @param {function} iterator - iterator to run
|
---|
| 11 | * @param {function} callback - invoked when all elements processed
|
---|
| 12 | * @returns {function} - jobs terminator
|
---|
| 13 | */
|
---|
| 14 | function serial(list, iterator, callback)
|
---|
| 15 | {
|
---|
| 16 | return serialOrdered(list, iterator, null, callback);
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.