Global methods.
- Source:
Methods
(static) Array#remove(primitive) → {Array|undefined}
Remove the first instance of a primitive inside an array. This extends the native array
prototype. Operates on the array in place.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
primitive |
*
|
the primitive to be removed from the array |
Returns:
- Type:
-
Array
|undefined
The modified array if removal successful, otherwise undefined