IDBIndex — querying an IndexedDB index
IDBIndex exposes object-store records through a secondary key. Compare array retrieval with getAll() against cursor iteration with openCursor(), and distinguish index keys from primary keys.
CKTIS / JavaScript
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
IDBIndex exposes object-store records through a secondary key. Compare array retrieval with getAll() against cursor iteration with openCursor(), and distinguish index keys from primary keys.
IDBKeyRange describes a range of keys for IndexedDB queries. The only method selects one key, while bound defines an interval whose endpoints can optionally be excluded.
IDBObjectStore exposes IndexedDB records through a transaction-bound handle. It supports adding, replacing, reading, deleting, and counting data, as well as accessing secondary indexes.
IDBOpenDBRequest represents an asynchronous request to open or delete an IndexedDB database. It exposes schema upgrades, blocking by other connections, and operation completion through events. It is neither a database connection nor a Promise.
IDBRequest exposes the result or error of an asynchronous IndexedDB operation through events. A successful request does not yet mean that the whole transaction has committed.
IDBTransaction groups IndexedDB operations so that changes commit together or roll back. Learn about object-store scope, the complete event, cancellation with abort(), and the error property.
The IDBVersionChangeEvent.oldVersion property exposes the previous version number of an IndexedDB database. In an upgradeneeded event, it helps select the required migrations; 0 means that the database did not previously exist.
IdleDeadline is the object passed to a requestIdleCallback() callback. It exposes the estimated remaining time and indicates whether the callback ran because its timeout expired.
Image creates an HTMLImageElement outside the document tree. Optional arguments set dimensions but neither load an image nor resize its file.
ImageData holds a rectangular area of pixels. Its ImageData.data property exposes a one-dimensional array of RGBA channels: its elements can be changed even though the property itself is read-only. Learn pixel indexing and the distinction between 8-bit and floating-point formats.
indexedDB.deleteDatabase(name) asynchronously deletes the named database, including its data and structure. It returns a request, not a Promise. Open connections can block the operation; the success event confirms completion.
indexedDB.open asynchronously opens or creates a local database. It returns an event-driven request; schema changes belong in the upgradeneeded handler.
IntersectionObserver asynchronously reports geometric intersection between an element and a reference region. Learn root, rootMargin, and threshold, and distinguish intersection from actual visibility.
disconnect() stops an IntersectionObserver from observing all its targets while allowing the observer to be reused.
IntersectionObserverEntry describes an observed element's intersection with its root at a recorded instant. Its isIntersecting, target, and intersectionRatio properties identify the intersection state, the element, and the fraction of its area that intersects.
The observe(target) method registers an element for asynchronous intersection tracking against root, using the observer's configuration.
The unobserve(target) method stops a particular IntersectionObserver from observing the specified element, leaving its other targets unchanged. It does not remove notifications that are already queued.
Intl.Collator compares strings using the rules of a selected locale. Its compare function can be passed directly to sorting; the sign of the result matters, not a particular numeric value.
Intl.DateTimeFormat formats dates and times using locale conventions and a selected time zone. Learn format(), formatToParts(), resolvedOptions(), and the distinction between timeZone and hourCycle.
Intl.DisplayNames turns language, region, and other category codes into display names using the locale resolved by the runtime. Learn the required type, missing-name handling, and the distinction between an input code and the output locale.
Intl.ListFormat combines string list elements using locale-appropriate separators and conjunctions. format() returns text, while formatToParts() separates the original elements from the inserted connecting text.
Intl.NumberFormat converts numbers into text using a locale and formatting options. It controls details such as digit grouping and decimal places; format returns a function bound to a particular formatter.
Intl.PluralRules selects a grammatical number category using locale-specific rules. Its select method returns a category name, not an inflected word or a complete message.
Intl.RelativeTimeFormat creates localized relative-time descriptions. Its format(value, unit) method takes a number and a unit, not a date; calculating the time difference remains the application's responsibility.