(arg = EMPTY)
| 6 | * @returns {boolean} True if the string contains a slash or starts with URI scheme character |
| 7 | */ |
| 8 | export function scheme (arg = EMPTY) { |
| 9 | if (arg === null || arg === undefined) { |
| 10 | arg = EMPTY; |
| 11 | } |
| 12 | |
| 13 | return arg.includes(SLASH) || arg.startsWith(URI_SCHEME) || arg.startsWith(":"); |
| 14 | } |