Skip to main content

isChildPath()

Home > @backstage/cli-common > isChildPath

Checks if path is the same as or a child path of base.

Signature:

function isChildPath(base: string, path: string): boolean;

Parameters

ParameterTypeDescription
basestring
pathstring

Returns:

boolean