Home Manual Reference Source

References

summary
public

F firstInversion(compare: Function, array: ArrayLike, left: number, right: number): number

Returns k <= right such that [left,k[ is sorted.

public

F isSorted(compare: Function, array: ArrayLike, left: number, right: number): boolean

Returns whether range [left,right[ of array is sorted.