(path?: unknown)
| 13 | export const REG_EXP_WINDOWS_ABS_PATH = /^[A-Za-z]:\\/ |
| 14 | |
| 15 | function assertPath(path?: unknown) { |
| 16 | if (typeof path !== 'string') { |
| 17 | throw new TypeError('Path must be a string. Received ' + JSON.stringify(path)) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | export function isAbsolute(p: string) { |
| 22 | assertPath(p) |
no outgoing calls
no test coverage detected
searching dependent graphs…