12345678910111213141516171819 |
- 'use strict';
- var $ = require('../internals/export');
- var uncurryThis = require('../internals/function-uncurry-this');
- var isArray = require('../internals/is-array');
- var nativeReverse = uncurryThis([].reverse);
- var test = [1, 2];
- $({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
- reverse: function reverse() {
-
- if (isArray(this)) this.length = this.length;
- return nativeReverse(this);
- }
- });
|