• Removes all values from an array that are undefined.

    Type Parameters

    • T extends any[]

      The type of the array to remove undefined values from.

    Parameters

    • array: T

      The array to remove undefined values from.

    Returns T[number][]

    The array without undefined values.