Sha256: 0a4da52135f27f5f0709383c10f4afc014f107b8578a6ed6e8b67c199aca4eda
Contents?: true
Size: 643 Bytes
Versions: 82
Compression:
Stored size: 643 Bytes
Contents
'use strict'; var $export = require('./_export'); var aFunction = require('./_a-function'); var toObject = require('./_to-object'); var fails = require('./_fails'); var $sort = [].sort; var test = [1, 2, 3]; $export($export.P + $export.F * (fails(function () { // IE8- test.sort(undefined); }) || !fails(function () { // V8 bug test.sort(null); // Old WebKit }) || !require('./_strict-method')($sort)), 'Array', { // 22.1.3.25 Array.prototype.sort(comparefn) sort: function sort(comparefn) { return comparefn === undefined ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); } });
Version data entries
82 entries across 38 versions & 8 rubygems