Function filterIgnoreEmpty

  • Returns the filtered array of the gaven strings, without empties

    Parameters

    • Optionaltexts: (undefined | null | string)[]

      the source string to inspect

    Returns string[] | undefined

    the filtered array of the gaven strings, without empties

    filterIgnoreEmpty([null, undefined, '', 'foobar']);    //  ['foobar']