(paths)
| 1 | var destCity = function (paths) { |
| 2 | let dest = paths[0][1]; |
| 3 | while (true) { |
| 4 | const _newDest = paths.find((path) => path[0] === dest); |
| 5 | if (!_newDest) return dest; |
| 6 | dest = _newDest[1]; |
| 7 | } |
| 8 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected