(array: T[], id: string)
| 146 | } |
| 147 | |
| 148 | export function findItemById<T extends {id: string}>(array: T[], id: string): T | undefined { |
| 149 | for (let i = 0; i < array.length; i++) { |
| 150 | const item = array[i]! |
| 151 | if (item.id === id) return item |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | export const splitOnColon = <T extends string>( |
| 156 | str: T, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…