Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface IDBKeyRange

The IDBKeyRange interface of the IndexedDB API represents a continuous interval over some data type that is used for keys. Records can be retrieved from IDBObjectStore and IDBIndex objects using keys or a range of keys. You can limit the range using lower and upper bounds. For example, you can iterate over all values of a key in the value range A–Z.

MDN Reference

interface IDBKeyRange {
    lower: any;
    lowerOpen: boolean;
    upper: any;
    upperOpen: boolean;
    includes(key: any): boolean;
}
Index
lower: any

The lower read-only property of the IDBKeyRange interface returns the lower bound of the key range.

MDN Reference

lowerOpen: boolean

The lowerOpen read-only property of the IDBKeyRange interface returns a boolean indicating whether the lower-bound value is included in the key range.

MDN Reference

upper: any

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

MDN Reference

upperOpen: boolean

The upperOpen read-only property of the IDBKeyRange interface returns a boolean indicating whether the upper-bound value is included in the key range.

MDN Reference

  • The includes() method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.

    MDN Reference

    Parameters

    • key: any

    Returns boolean

Was this helpful?