• Returns whether the given text includes to any of the comparison strings

    Parameters

    • Optionaltext: null | string

      the source string to check

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

      the target strings to compare

    Returns boolean

    whether the given text includes the comparison string

    includesAny('foobar', ['foo', 'bar']);    // true