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 Array<T>

The array to change.

element T

The element to remove.

Return value

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