---
title: "IDBKeyRange | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable IDBKeyRange

IDBKeyRange: {  
    prototype: [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/);  
    bound(  
        lower: any,  
        upper: any,  
        lowerOpen?: boolean,  
        upperOpen?: boolean,  
    ): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/);  
    lowerBound(lower: any, open?: boolean): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/);  
    only(value: any): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/);  
    upperBound(upper: any, open?: boolean): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/);  
    new (): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/);  
}

#### Type Declaration

-   -   new (): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
    -   #### Returns [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
        
-   ##### prototype: [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
    
-   ##### bound: function
    
    -   bound(  
            lower: any,  
            upper: any,  
            lowerOpen?: boolean,  
            upperOpen?: boolean,  
        ): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)[](#bound-1)
        
        The **`bound()`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds. The bounds can be open (that is, the bounds exclude the endpoint values) or closed (that is, the bounds include the endpoint values). By default, the bounds are closed.
        
        [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
        
        #### Parameters
        
        -   lower: any
        -   upper: any
        -   `Optional`lowerOpen: boolean
        -   `Optional`upperOpen: boolean
        
        #### Returns [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
        
-   ##### lowerBound: function
    
    -   lowerBound(lower: any, open?: boolean): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)[](#lowerbound-1)
        
        The **`lowerBound()`** static method of the IDBKeyRange interface creates a new key range with only a lower bound. By default, it includes the lower endpoint value and is closed.
        
        [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
        
        #### Parameters
        
        -   lower: any
        -   `Optional`open: boolean
        
        #### Returns [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
        
-   ##### only: function
    
    -   only(value: any): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)[](#only-1)
        
        The **`only()`** static method of the IDBKeyRange interface creates a new key range containing a single value.
        
        [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
        
        #### Parameters
        
        -   value: any
        
        #### Returns [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
        
-   ##### upperBound: function
    
    -   upperBound(upper: any, open?: boolean): [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)[](#upperbound-1)
        
        The **`upperBound()`** static method of the IDBKeyRange interface creates a new upper-bound key range. By default, it includes the upper endpoint value and is closed.
        
        [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
        
        #### Parameters
        
        -   upper: any
        -   `Optional`open: boolean
        
        #### Returns [IDBKeyRange](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.IDBKeyRange/)
