@ac-essentials/misc-util
    Preparing search index...

    Function compact

    • Removes null and undefined values from an array.

      Type Parameters

      • T

      Parameters

      • array: (T | null | undefined)[]

        The array to compact.

      Returns T[]

      A new array with null and undefined values removed.