Skip to content

isAbsolute

Determines if a path is absolute.

Import:

import { isAbsolute } from '@mnaoumov/typescript-lib/path';

Signature:

function isAbsolute(path: string): boolean

Parameters:

Parameter Type Description
path string The path to check.

Returns: boolean — true if the path is absolute, false otherwise.