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

    Function getTypeof

    • Returns the element types of the given array

      Parameters

      • Optionalarray: null | any[] | readonly any[]

        the array to check

      Returns undefined | string[]

      the element types of the given array

      David Hsing

      getTypeof(['foo', 'bar']);    // ['string', 'string']