function searchUnsortedValue
searchUnsortedValue<T, U = T>(): numberFind first index of an unsorted value.
Type Parameters
TU = TParameters
x: T[]an array
optional
fc: CompareFunction<T | U> | null = nullcompare function (a, b)
optional
fm: MapFunction<T, T | U> | null = nullmap function (v, i, x)
Return Type
index of first unsorted value, -1 if sorted