1 | ;
|
2 | var call = require('../internals/function-call');
|
3 | var map = require('../internals/async-iterator-map');
|
4 |
|
5 | var callback = function (value, counter) {
|
6 | return [counter, value];
|
7 | };
|
8 |
|
9 | // `AsyncIterator.prototype.indexed` method
|
10 | // https://github.com/tc39/proposal-iterator-helpers
|
11 | module.exports = function indexed() {
|
12 | return call(map, this, callback);
|
13 | };
|