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
immosquare-cleaner-0.1.60 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.60 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.59 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.59 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.58 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.58 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.57 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.57 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.56 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.56 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.55 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.55 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.54 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.54 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.53 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.53 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.52 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.52 node_modules/core-js/modules/es6.array.sort.js
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es6.array.sort.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es6.array.sort.js