Edit this page

up.util up.util.remove(array, element)
JavaScript function

Removes the given element from the given array.

This changes the given array.


Parameters

array
required

The array to change.

Array<T>
element
required

The element to remove.

T

Return value

The removed element, or undefined if the array didn't contain the element.