Skip to main content

Signature

path=null start=null
removeElement<T>(arr: T[], element: T): T[]

Type Parameters

  • T

Parameters

  • arr: T[] - The array from which to remove the element.
  • element: T - The element to remove.

Returns

T[] - A new array with the specified element removed.

Source

Defined in array.ts:79