Skip to main content

isParentOf

Callable

  • isParentOf(parent: string, child: string): boolean

  • Checks if the given parent path is an ancestor of the given child path.


    Parameters

    • parent: string

      The parent path to check.

    • child: string

      The child path to verify against the parent.

    Returns boolean

    Whether the parent path is an ancestor of the child path.