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

Method at

packages/react-stately/src/grid/GridCollection.ts:201–204  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

199 }
200
201 at(idx: number): GridNode<T> | null {
202 const keys = [...this.getKeys()];
203 return this.getItem(keys[idx]);
204 }
205
206 getChildren(key: Key): Iterable<GridNode<T>> {
207 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