Function searchMismatchedValue

  • Find first index where two arrays differ. 📘

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • y: T[]

      another array

    • Optional fc: CompareFunction<T | U>

      compare function (a, b)

    • Optional fm: MapFunction<T, T | U>

      map function (v, i, x)

    Returns number

    first index where x[i] ≠ y[i], or -1

Generated using TypeDoc