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

Function isFirstItem

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

Source from the content-addressed store, hash-verified

2355}
2356
2357function isFirstItem(id: Key | undefined, state: TableState<unknown>) {
2358 if (id == null || !state) {
2359 return false;
2360 }
2361 return state.collection.getFirstKey() === id;
2362}

Callers 1

TableView.tsxFile · 0.70

Calls 1

getFirstKeyMethod · 0.65

Tested by

no test coverage detected