Skip to content

Function: isWithinRoot()

isWithinRoot(root, candidate): boolean

Whether candidate is root or a descendant (POSIX lexical).

string

string

boolean