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

    Function equalsAny

    • Returns whether the given string equals to any of the comparison strings

      Parameters

      • Optionaltext: string | null

        The source string to check

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

        The target strings to compare

      Returns boolean

      whether the given string equals to any of the comparison strings

      David Hsing

      equalsAny('foo', ['foo', 'bar']);    // true