Skip to main content
Version: 1.x

isAbsolute()

const isAbsolute: (path) => boolean = upath.isAbsolute

Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.

Parameters

ParameterTypeDescription

path

string

path to test.

Returns

boolean