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

Version Path
optimacms-0.4.2 spec/dummy/node_modules/core-js/modules/es6.array.sort.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/library/modules/es6.array.sort.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/modules/es6.array.sort.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/library/modules/es6.array.sort.js
lux_assets-0.2.11 ./node_modules/core-js/library/modules/es6.array.sort.js
lux_assets-0.2.11 ./node_modules/core-js/modules/es6.array.sort.js
lux_assets-0.2.9 ./node_modules/core-js/library/modules/es6.array.sort.js
lux_assets-0.2.9 ./node_modules/core-js/modules/es6.array.sort.js
lux_assets-0.2.4 ./node_modules/core-js/modules/es6.array.sort.js
lux_assets-0.2.4 ./node_modules/core-js/library/modules/es6.array.sort.js
lux_assets-0.2.2 ./node_modules/core-js/modules/es6.array.sort.js
lux_assets-0.2.2 ./node_modules/core-js/library/modules/es6.array.sort.js
lux_assets-0.2.1 ./node_modules/core-js/modules/es6.array.sort.js
lux_assets-0.2.1 ./node_modules/core-js/library/modules/es6.array.sort.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/modules/es6.array.sort.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/library/modules/es6.array.sort.js
cortex-0.1.3 spec/dummy/node_modules/core-js/modules/es6.array.sort.js
cortex-0.1.3 spec/dummy/node_modules/core-js/library/modules/es6.array.sort.js
condenser-0.0.4 lib/condenser/processors/node_modules/core-js/modules/es6.array.sort.js
condenser-0.0.4 lib/condenser/processors/node_modules/core-js/library/modules/es6.array.sort.js