Function arrEject

  • Removes one or more elements from an array

    Example

    arrEject([1, 2, 3, 4], 2);
    => [1, 3, 4]

    Type Parameters

    • Type extends unknown[]

    Parameters

    • a: unknown[]

      An array

    • elements: ArrayElement<Type> | ArrayElement<Type>[]

      A single element or an array of elements to eject

    • mutate: boolean = true

      Whether to mutate the original array

    Returns Type

Generated using TypeDoc