Here you can find the source of clone()
Array.prototype.clone = function () { var newArray = new Array(); for(var index=0; index<this.length;index=index+1) { newArray[index] = this[index];// w w w . j av a 2s . c o m } return newArray; };
Array.prototype.clone = function() { return this.slice(0); };
Array.prototype.clone = function() { return this.slice(); };
var utils = { extend: function(orig, extra) { return Object.keys(extra).forEach(function(key) { orig[key] = extra[key]; }); }; Array.prototype.clone = function() { return this.slice(0); ...
Array.prototype.clone = function() { var arr = this.slice(0); for( var i = 0; i < this.length; i++ ) { if( this[i].clone ) { arr[i] = this[i].clone(); return arr;
Array.prototype.clone = function() { var arr = this.slice(0); for( var i = 0; i < this.length; i++ ) { if( this[i].clone ) { arr[i] = this[i].clone(); return arr;
Array.prototype.clone = function() { var results = new Array(this.length); for (var i = 0, len = this.length; i < len; i++) { results[i] = this[i]; return results; }; Array.prototype.clone = function() { return [].concat(this); ...