Javascript Array copyFrom(arr, begin, end, insertPosition)

Description

Javascript Array copyFrom(arr, begin, end, insertPosition)

////*from  www  . ja va 2s .c o m*/
Array.prototype.copyFrom = function(arr, begin, end, insertPosition) {
 for (var i = begin; i < end; ++i, ++insertPosition) {
  this[insertPosition] = arr[i];
 }
 return insertPosition;
}



PreviousNext

Related