BVB Source Codes

reactide Show es6.array.sort.js Source code

Return Download reactide: download es6.array.sort.js Source code - Download reactide Source code - Type:.js
  1. 'use strict';
  2. var $export   = require('./_export')
  3.   , aFunction = require('./_a-function')
  4.   , toObject  = require('./_to-object')
  5.   , fails     = require('./_fails')
  6.   , $sort     = [].sort
  7.   , test      = [1, 2, 3];
  8.  
  9. $export($export.P + $export.F * (fails(function(){
  10.   // IE8-
  11.   test.sort(undefined);
  12. }) || !fails(function(){
  13.   // V8 bug
  14.   test.sort(null);
  15.   // Old WebKit
  16. }) || !require('./_strict-method')($sort)), 'Array', {
  17.   // 22.1.3.25 Array.prototype.sort(comparefn)
  18.   sort: function sort(comparefn){
  19.     return comparefn === undefined
  20.       ? $sort.call(toObject(this))
  21.       : $sort.call(toObject(this), aFunction(comparefn));
  22.   }
  23. });
downloades6.array.sort.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top