Sha256: 84860da40209350e49a5ded2f9891b9890b98623bc70b9298ea515c83697b2ac

Contents?: true

Size: 670 Bytes

Versions: 314

Compression:

Stored size: 670 Bytes

Contents

'use strict';
var $export   = require('./_export')
  , aFunction = require('./_a-function')
  , toObject  = require('./_to-object')
  , fails     = require('./_fails')
  , $sort     = [].sort
  , 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

314 entries across 6 versions & 1 rubygems

Version Path
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-template-literals/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-typeof-symbol/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-core/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-generator/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-call-delegate/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-define-map/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-hoist-variables/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-optimise-call-expression/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-regex/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-regex/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-replace-supers/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-replace-supers/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helpers/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-messages/node_modules/core-js/library/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-external-helpers/node_modules/core-js/modules/es6.array.sort.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es3-member-expression-literals/node_modules/core-js/modules/es6.array.sort.js