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

Function getItem

packages/react-stately/test/virtualizer/GridLayout.test.ts:48–50  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

46 let collection = {
47 size: items.length,
48 getItem(key: Key) {
49 return items.find(i => i.key === key) ?? null;
50 },
51 getFirstKey() {
52 return items[0]?.key ?? null;
53 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected