@shopify/cli-kit
    Preparing search index...

    Function getArrayRejectingUndefined

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

      Type Parameters

      • T

      Parameters

      • array: (T | undefined)[]

        The array whose undefined will be deleted.

      Returns T[]

      A copy of the array with the undefined elements deleted.