Takaro - v0.4.11
    Preparing search index...

    Function includes

    • Checks if target is in collection using SameValueZero for equality comparisons. If fromIndex is negative, it’s used as the offset from the end of collection.

      Type Parameters

      • T

      Parameters

      • collection: Dictionary<T> | NumericDictionary<T> | null | undefined

        The collection to search.

      • target: T

        The value to search for.

      • OptionalfromIndex: number

        The index to search from.

      Returns boolean

      True if the target element is found, else false.