Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
move datatable to yarn
Commit Description:
move datatable to yarn
'use strict' ;
var $export = require ( './_export' );
var html = require ( './_html' );
var cof = require ( './_cof' );
var toAbsoluteIndex = require ( './_to-absolute-index' );
var toLength = require ( './_to-length' );
var arraySlice = []. slice ;
// fallback for not array-like ES3 strings and DOM objects
$export ( $export . P + $export . F * require ( './_fails' )( function () {
if ( html ) arraySlice . call ( html );
}), 'Array' , {
slice : function slice ( begin , end ) {
var len = toLength ( this . length );
var klass = cof ( this );
end = end === undefined ? len : end ;
if ( klass == 'Array' ) return arraySlice . call ( this , begin , end );
var start = toAbsoluteIndex ( begin , len );
var upTo = toAbsoluteIndex ( end , len );
var size = toLength ( upTo - start );
var cloned = new Array ( size );
var i = 0 ;
for (; i < size ; i ++ ) cloned [ i ] = klass == 'String'
? this . charAt ( start + i )
: this [ start + i ];
return cloned ;
}
});
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings