Function arrayRemove

  • Remove an element from an array, if the array contains the element.

    Parameters

    • array: unknown[]
    • element: unknown

    Returns void