• 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:
          | undefined
          | null
          | Dictionary<T>
          | NumericDictionary<T>

      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.