(list: Array<{ id: string }>, id: string)
| 271 | } |
| 272 | |
| 273 | function remove(list: Array<{ id: string }>, id: string): boolean { |
| 274 | const idx = list.findIndex((entry) => entry.id === id) |
| 275 | if (idx === -1) { |
| 276 | return false |
| 277 | } |
| 278 | |
| 279 | list.splice(idx, 1) |
| 280 | return true |
| 281 | } |
| 282 | |
| 283 | export function bootstrapSessionData(input: { |
| 284 | data: SessionData |