• Returns a copy of the array deleting the elemements that are undefined.

    Type Parameters

    • T

    Parameters

    • array: (undefined | T)[]

      The array whose undefined will be deleted.

    Returns T[]

    A copy of the array with the undefined elements deleted.