(array: T[], value: T)
| 63 | } |
| 64 | |
| 65 | export function remove<T>(array: T[], value: T): boolean { |
| 66 | const index = array.findIndex((t) => t === value); |
| 67 | |
| 68 | if (index > -1) { |
| 69 | array.splice(index, 1); |
| 70 | return true; |
| 71 | } |
| 72 | return false; |
| 73 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…