import { isAbsolute } from "https://deno.land/x/ayonli_jsext@v0.9.72/path.ts";
Checks if the given path
is an absolute path.
Examples
Example 1
Example 1
import { isAbsolute } from "@ayonli/jsext/path";
console.assert(isAbsolute("/usr/bin"));
console.assert(isAbsolute("C:\\Windows\\System32"));
console.assert(isAbsolute("http://example.com"));
console.assert(isAbsolute("file:///C:/Windows/System32"));
console.assert(isAbsolute("file://localhost/C:/Windows/System32?foo=bar#baz"));