up.util.remove(array, element)
JavaScript function
Removes the given element from the given array.
This changes the given array.
Parameters
array
element
required
The element to remove.
Type: T
Return value
The removed element, or undefined if the array didn't contain the element.
Type: T | undefined