Skip to main content

Home > @jsplumb/util > remove

remove() function#

Remove an item from an array

Signature:

export declare function remove<T>(l: Array<T>, v: T): boolean;

Parameters#

ParameterTypeDescription
lArray<T>Array to remove the item from
vTItem to remove.

Returns:

boolean

true if the item was removed, false otherwise.