Function includes

  • Determines whether an itreable includes a certain value among its entries, returning true or false as appropriate.

    Type Parameters

    • T

      The type of elements in the source sequence.

    Parameters

    • source: Iterable<T>

      The source sequence to search for the item.

    • searchElement: T
    • Optional fromIndex: number = 0

      The position in this iterable at which to begin searching for valueToFind.

    Returns boolean

    Returns true if the value valueToFind is found within the iterable.

Generated using TypeDoc