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

    Function includes

    • Returns whether the given array includes the given element

      Type Parameters

      • E

      Parameters

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

        the array to check

      • Optionalelement: null | E

        the element to compare

      Returns boolean

      whether the given array includes the given element

      David Hsing

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