* @param {string} path * @returns {boolean}
(path)
| 485 | * @returns {boolean} |
| 486 | */ |
| 487 | isAbsolute(path) { |
| 488 | validateString(path, 'path'); |
| 489 | const len = path.length; |
| 490 | if (len === 0) |
| 491 | return false; |
| 492 | |
| 493 | const code = StringPrototypeCharCodeAt(path, 0); |
| 494 | return isPathSeparator(code) || |
| 495 | // Possible device root |
| 496 | (len > 2 && |
| 497 | isWindowsDeviceRoot(code) && |
| 498 | StringPrototypeCharCodeAt(path, 1) === CHAR_COLON && |
| 499 | isPathSeparator(StringPrototypeCharCodeAt(path, 2))); |
| 500 | }, |
| 501 | |
| 502 | /** |
| 503 | * @param {...string} args |
no test coverage detected
searching dependent graphs…