upperBound

fun upperBound(upper: Any?, open: Boolean = definedExternally): IDBKeyRange(source)

Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.

MDN Reference