Array.remove Function
Removes the first occurrence of the specified item from an Array object. This function is static and can be invoked without creating an instance of the object.
var isRemoved = Array.remove(array, item);
Use the remove function to remove the first occurrence of a specified item from an array. The index value of items that remain in the array is decreased by one.
In Mozilla Firefox, calling the remove function with item set to undefined removes the first item with that value from the array. In other browsers, calling the function with item set to undefined has no effect.
Show: