Skip to content

IDBKeyRange

Generated from idl/indexeddb.webidl when the site was built at 7aa23e2.

IDBKeyRange is an interface in idl/indexeddb.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.

A key range is a value the binding holds.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
IndexedDB Widely available Partial 95% 2929 of 3061 subtests pass 6
attribute
[NisoGlue] readonly attribute any lower;
attribute
[NisoGlue] readonly attribute any upper;
attribute
[NisoGlue] readonly attribute boolean lowerOpen;
attribute
[NisoGlue] readonly attribute boolean upperOpen;
static operation
[NisoGlue, NewObject] static IDBKeyRange only(any value);

Static construction methods:

static operation
[NisoGlue, NewObject] static IDBKeyRange lowerBound(any lower, optional boolean open = false);
static operation
[NisoGlue, NewObject] static IDBKeyRange upperBound(any upper, optional boolean open = false);
static operation
[NisoGlue, NewObject] static IDBKeyRange bound(any lower, any upper, optional boolean lowerOpen = false, optional boolean upperOpen = false);
operation
[NisoGlue] boolean includes(any key);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • bound_static (IndexedDB)
  • lowerBound_static (IndexedDB)
  • only_static (IndexedDB)
  • upperBound_static (IndexedDB)
  • worker_support (IndexedDB)