(root, obj)
| 107 | return ''; |
| 108 | } |
| 109 | export function getPath(root, obj) { |
| 110 | if (root === obj) { |
| 111 | return '/'; |
| 112 | } |
| 113 | var path = _getPathRecursive(root, obj); |
| 114 | if (path === '') { |
| 115 | throw new Error("Object not found in root"); |
| 116 | } |
| 117 | return "/" + path; |
| 118 | } |
| 119 | /** |
| 120 | * Recursively checks whether an object has any undefined values inside. |
| 121 | */ |
nothing calls this directly
no test coverage detected