The usage of the SLICE function: SLICE (A, B) intercepting the elements between arrays A to B constitute a new array intercepted element A, A 1, ..., B-1
The method of deleting an element A to element B is: Element of Element A before the merge element A. Elements from element B; Function Array.Prototype.Remove (A, B) {Return this.slice (0, a) .concat (this . SLICE ((b || a) 1);