(id: Key | undefined, state: ListState<unknown>)
| 1045 | } |
| 1046 | |
| 1047 | function isFirstItem(id: Key | undefined, state: ListState<unknown>) { |
| 1048 | if (id == null || !state) { |
| 1049 | return false; |
| 1050 | } |
| 1051 | return state.collection.getFirstKey() === id; |
| 1052 | } |
| 1053 | |
| 1054 | function isLastItem(id: Key | undefined, state: ListState<unknown>) { |
| 1055 | if (id == null || !state) { |
no test coverage detected