(root, obj)
| 115 | } |
| 116 | exports._getPathRecursive = _getPathRecursive; |
| 117 | function getPath(root, obj) { |
| 118 | if (root === obj) { |
| 119 | return '/'; |
| 120 | } |
| 121 | var path = _getPathRecursive(root, obj); |
| 122 | if (path === '') { |
| 123 | throw new Error("Object not found in root"); |
| 124 | } |
| 125 | return "/" + path; |
| 126 | } |
| 127 | exports.getPath = getPath; |
| 128 | /** |
| 129 | * Recursively checks whether an object has any undefined values inside. |
nothing calls this directly
no test coverage detected