main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
547 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var arrayToReversed = require('../internals/array-to-reversed');
|
---|
4 | var toIndexedObject = require('../internals/to-indexed-object');
|
---|
5 | var addToUnscopables = require('../internals/add-to-unscopables');
|
---|
6 |
|
---|
7 | var $Array = Array;
|
---|
8 |
|
---|
9 | // `Array.prototype.toReversed` method
|
---|
10 | // https://tc39.es/ecma262/#sec-array.prototype.toreversed
|
---|
11 | $({ target: 'Array', proto: true }, {
|
---|
12 | toReversed: function toReversed() {
|
---|
13 | return arrayToReversed(toIndexedObject(this), $Array);
|
---|
14 | }
|
---|
15 | });
|
---|
16 |
|
---|
17 | addToUnscopables('toReversed');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.