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

Method at

packages/react-stately/src/list/ListCollection.ts:105–108  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

103 }
104
105 at(idx: number): Node<T> | null {
106 const keys = [...this.getKeys()];
107 return this.getItem(keys[idx]);
108 }
109
110 getChildren(key: Key): Iterable<Node<T>> {
111 let node = this.keyMap.get(key);

Callers

nothing calls this directly

Calls 2

getKeysMethod · 0.95
getItemMethod · 0.95

Tested by

no test coverage detected