|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
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.