Skip to content

Welshman Docs / @welshman/lib / remove

Function: remove() ​

remove<T>(a, xs): T[]

Defined in: packages/lib/src/Tools.ts:407

Removes all instances of an element from array

Type Parameters ​

• T

Parameters ​

a ​

T

Element to remove

xs ​

T[]

Source array

Returns ​

T[]

New array with element removed