main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
367 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
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 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.