The upper read-only property of the IDBKeyRange interface returns the upper bound of the key range.
upper
MDN Reference