Removes element(s) from an array, and returns the modified array;
assert([0, 1, 2].deleteElement(1) == [0, 2]); assert([0, 1, 2].deleteElement(0, 2) == [2]);
See Implementation
Removes element(s) from an array, and returns the modified array;