files/en-us/web/api/idbkeyrange/includes/index.md
{{ APIRef("IndexedDB") }} {{AvailableInWorkers}}
The includes() method of the {{domxref("IDBKeyRange")}}
interface returns a boolean indicating whether a specified key is inside the key
range.
includes(key)
key
A boolean value.
DataError {{domxref("DOMException")}}
const keyRangeValue = IDBKeyRange.bound("A", "K", false, false);
keyRangeValue.includes("F");
// Returns true
keyRangeValue.includes("W");
// Returns false
{{Specifications}}
{{Compat}}