• 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


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

      The collection to search.

    • target: T

      The value to search for.

    • Optional fromIndex: number

      The index to search from.

    Returns boolean

    True if the target element is found, else false.

Generated using TypeDoc