|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
419 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | require('../modules/es.iterator.map');
|
|---|
| 3 | var call = require('../internals/function-call');
|
|---|
| 4 | var map = require('../internals/iterators-core').IteratorPrototype.map;
|
|---|
| 5 |
|
|---|
| 6 | var callback = function (value, counter) {
|
|---|
| 7 | return [counter, value];
|
|---|
| 8 | };
|
|---|
| 9 |
|
|---|
| 10 | // `Iterator.prototype.indexed` method
|
|---|
| 11 | // https://github.com/tc39/proposal-iterator-helpers
|
|---|
| 12 | module.exports = function indexed() {
|
|---|
| 13 | return call(map, this, callback);
|
|---|
| 14 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.