UNPKG

abi.js

Version:

[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]

17 lines (16 loc) 450 B
/** * Verifies whether provided path is absolute. * * @example Usage * ```ts * import { isAbsolute } from "@std/path/windows/is-absolute"; * import { assert, assertFalse } from "@std/assert"; * * assert(isAbsolute("C:\\foo\\bar")); * assertFalse(isAbsolute("..\\baz")); * ``` * * @param path The path to verify. * @returns `true` if the path is absolute, `false` otherwise. */ export declare function isAbsolute(path: string): boolean;