cmp

fun cmp(first: JsAny?, second: JsAny?): Short(source)

The cmp() method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.

MDN Reference