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

    Function includes

    • Returns whether the given array includes the given element

      Type Parameters

      • E

      Parameters

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

        The array to check

      • Optionalelement: E | null

        The element to compare

      Returns boolean

      whether the given array includes the given element

      David Hsing

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