Skip to main content
path.PlatformPath.isAbsolute - node__path.d.ts - Node documentation
method path.PlatformPath.isAbsolute

Usage in Deno

```typescript import { type path } from "node:node__path.d.ts"; ```
PlatformPath.isAbsolute(path: string): boolean
Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. If the given {path} is a zero-length string, `false` will be returned.

Parameters

path: string
path to test.

Return Type

boolean

Throws

TypeError
if `path` is not a string.