Javascript - easy to understand and 93% faster
Filter paths to arrivals and destinations, then filter to the destination not found in arrivals.\n\n\nvar destCity = function(paths) {\n    const arrivals = pat
Filter `paths` to arrivals and destinations, then filter to the destination not found in arrivals.\n\n```\nvar destCity = function(paths) {\n    const arrivals = paths.map(a => a[0]);\n    const destinations =  paths.map(a => a[1]);\n    \n    return destinations.filter(d => arrivals.indexOf(d) === -1).join(\'\');\n};\n```\n\nStats:\nRuntime: 60 ms, faster than 93.86% of JavaScript online submissions for Destination City.\nMemory Usage: 34.8 MB, less than 97.23% of JavaScript online submissions for Destination City.\n
['JavaScript']