Javascript Array sliceDelete(index)

Description

Javascript Array sliceDelete(index)

Array.prototype.sliceDelete = function (index) {
  return [//  w  w w .ja  va 2  s .  c  o m
    ...this.slice(0, index),
    ...this.slice(index + 1),
  ];
};



PreviousNext

Related