(id: Key | undefined, state: TreeState<unknown>)
| 851 | } |
| 852 | |
| 853 | function isFirstItem(id: Key | undefined, state: TreeState<unknown>) { |
| 854 | if (id == null || !state) { |
| 855 | return false; |
| 856 | } |
| 857 | return state.collection.getFirstKey() === id; |
| 858 | } |
no test coverage detected