remove Method
Removes the first occurrence of a value comparing equal to the specified value from the array.
remove(value: T): number
Parameter | Type | Description |
---|---|---|
value | T | The value of the element to delete |
Returns - the index of the deleted value, or -1 if no such element exists.
Defined in
Last Updated: 08 January, 2020