Usage of slice function: slice(a, b)
Interception The elements between array a and b form a new array
The intercepted elements are a, a 1, ..., b-1
Method to delete element a to element b in the array It is:
Merge the elements before element a and the elements starting from element b;
function Array.prototype.remove(a, b){
return this.slice(0, a).concat(this. slice((b||a) 1));
}