(a: T[], cb: (value: T) => T | undefined)
| 86 | } |
| 87 | |
| 88 | function first<T>(a: T[], cb: (value: T) => T | undefined): T | undefined { |
| 89 | for (const value of a) { |
| 90 | const result = cb(value); |
| 91 | if (result != null) return result; |
| 92 | } |
| 93 | return; |
| 94 | } |
| 95 | |
| 96 | function getEntryFromFiles(parts: string[], files: Entry) { |
| 97 | let current = files; |
searching dependent graphs…