• Removes the first occurrence of an item from an array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to search for the item.

    • item: T

      The item to remove.

    Returns boolean

    True if the item was removed, false otherwise.