MCPcopy Create free account
hub / github.com/adobe/react-spectrum / at

Method at

packages/react-stately/src/tree/TreeCollection.ts:98–101  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

96 }
97
98 at(idx: number): Node<T> | null {
99 const keys = [...this.getKeys()];
100 return this.getItem(keys[idx]);
101 }
102}

Callers

nothing calls this directly

Calls 2

getKeysMethod · 0.95
getItemMethod · 0.95

Tested by

no test coverage detected