(id: Key | undefined, state: TreeState<unknown>)
| 844 | } |
| 845 | |
| 846 | function isFirstItem(id: Key | undefined, state: TreeState<unknown>) { |
| 847 | if (id == null || !state) { |
| 848 | return false; |
| 849 | } |
| 850 | return state.collection.getFirstKey() === id; |
| 851 | } |
no test coverage detected