main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
356 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var call = require('../internals/function-call');
|
---|
| 3 | var map = require('../internals/iterator-map');
|
---|
| 4 |
|
---|
| 5 | var callback = function (value, counter) {
|
---|
| 6 | return [counter, value];
|
---|
| 7 | };
|
---|
| 8 |
|
---|
| 9 | // `Iterator.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.