Dictionary | Matterport SDK
Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.

A homogenous collection of items indexable by string like a standard JavaScript object. Can also be iterated with a for..of loop.

Type parameters

  • ItemT

    The type of each item in this collection.


  • Dictionary


[key: string]: ItemT

Get an item using a specific key.




  • [Symbol.iterator](): IterableIterator<[string, ItemT]>
  • Iterate all items in the collection using for..of.

    for (const [key, item] of collection) {
      console.log(`the collection contains ${item} at the index ${key}`);

    Returns IterableIterator<[string, ItemT]>