Function joinDeepPath

Appends two segments to an existing path.

import { ROOT_PATH, joinDeepPath } from "estree-sentry";
// returns: "$.body.0"
joinDeepPath(ROOT_PATH, "body", 0);