• Removes all values from an array that are null or undefined.

    Type Parameters

    • T extends any[]

      The type of the array to remove empty values from.

    Parameters

    • array: T

      The array to remove empty values from.

    Returns T[number][]

    The array without empty values.