Baseline Widely available
Note: This feature is available in Web Workers.
The includes()
method of the IDBKeyRange
interface returns a boolean indicating whether a specified key is inside the key range.
key
The key you want to check for in your key range. This can be any type.
A boolean value.
ExceptionsDataError
DOMException
Thrown if the supplied key was not a valid key.
const keyRangeValue = IDBKeyRange.bound("A", "K", false, false);
keyRangeValue.includes("F");
// Returns true
keyRangeValue.includes("W");
// Returns false
Specifications Browser compatibility See also
IDBDatabase
IDBTransaction
IDBKeyRange
IDBObjectStore
IDBCursor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4