@yookue/ts-lang-utils
    Preparing search index...

    Function firstNotEmpty

    • Returns the first not empty element in the given objects, or undefined if all elements are empty

      Parameters

      • ...objects: any[] | readonly any[]

        the objects to check

      Returns any

      the first not empty element in the given objects, or undefined if all elements are empty

      David Hsing

      firstNotEmpty(null, undefined, {}, 'foo', 'bar');    // 'foo'