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

Function isFirstItem

packages/@react-spectrum/s2/src/TableView.tsx:2341–2346  ·  view source on GitHub ↗
(id: Key | undefined, state: TableState<unknown>)

Source from the content-addressed store, hash-verified

2339}
2340
2341function isFirstItem(id: Key | undefined, state: TableState<unknown>) {
2342 if (id == null || !state) {
2343 return false;
2344 }
2345 return state.collection.getFirstKey() === id;
2346}

Callers 1

TableView.tsxFile · 0.70

Calls 1

getFirstKeyMethod · 0.65

Tested by

no test coverage detected