remove()

Remove a specific value from a given array.

This function is valid in v2.23.0. This function has been downloaded 2 times.

Parameters

{Array} array
The array from which to remove the target value.
{*} target
The target value that should be removed from array.
{number=} opt_maxRemoval Optional, Default:1
The maximum number of times to remove target from array.

Returns

{Array}
A reference to array.

Required Functions

This function directly requires the following functions which are included automatically:

  • removeAll()
    Remove all occurrences of a specific value from a given array.
  • removeRight()
    Remove a specific value from a given array starting at the end of the array.

Requiring Functions

This function is directly required by the following functions:

  • removeAll()
    Remove all occurrences of a specific value from a given array.
  • removeRight()
    Remove a specific value from a given array starting at the end of the array.