@chromia/ft4 - v2.1.0
    Preparing search index...

    Function compactArray

    • Accepts an array which might be a mix of values and null/undefined and returns the same array without said null/undefined values.

      Type Parameters

      • T

      Parameters

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

        the array to compact

      Returns T[]