Javascript Array drop(array, number)

Description

Javascript Array drop(array, number)


Array.prototype.drop = function(array, number) {
  if (number === undefined) {number = 1};
  return array.slice(number);
}

//hi/*from   www.  j  av  a 2s  .  c o m*/



PreviousNext

Related