isRelativePath()function

isRelativePath(path: PossiblePath): path is RelativePath
ParamType
pathPossiblePath
The path to test. required
Return
path is RelativePath
true if path is a RelativePath (. or starting with ./), narrowing its type.

Is a string path a relative path?

Examples

isRelativePath("./a") // true