(array: T[], id: string)
| 7 | |
| 8 | // 从数组中移除指定ID的项 |
| 9 | export const removeFromArray = <T extends { id: string }>(array: T[], id: string): T[] => |
| 10 | array.filter((item) => item.id !== id) |
| 11 | |
| 12 | // 约束侧边栏宽度 |
| 13 | export const constrainSidebarWidth = (width: number): number => |
nothing calls this directly
no outgoing calls
no test coverage detected