The IDBKeyRange interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.

MDN Reference

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

Properties

lower: any

The lower read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you'd use a key range.

MDN Reference

lowerOpen: boolean

The lowerOpen read-only property of the lower-bound value is included in the key range.

MDN Reference

upper: any

The upper read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you'd use a key range.

MDN Reference

upperOpen: boolean

The upperOpen read-only property of the upper-bound value is included in the key range.

MDN Reference

Methods

  • 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