---
title: "IndexedCollection | 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.

# Interface IndexedCollection

interface IndexedCollection {  
    [length](#length): number;  
    ["\[iterator\]"](#iterator-1)(): [Iterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Iterator/)<number, any, any\>;  
    \[index: number\]: number;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.IndexedCollection))

-   [Iterable](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Iterable/)<number\>
    -   IndexedCollection

#### Indexable

-   \[index: number\]: number
    

##### Index

### Properties[](#properties)

[length](#length)

### Methods[](#methods)

[\[iterator\]](#iterator)

## Properties[](#properties-1)

### `Readonly`length[](#length)

length: number

## Methods[](#methods-1)

### \[iterator\][](#iterator)

-   "\[iterator\]"(): [Iterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Iterator/)<number, any, any\>[](#iterator-1)
    
    #### Returns [Iterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Iterator/)<number, any, any\>
    
    Inherited from [Iterable](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Iterable/).[\[iterator\]](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Iterable/#iterator)
