Created
September 9, 2020 13:45
-
-
Save davelnewton/ce4cf4c47ddd607302e1fd633b53479a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { details } = resp.Result | |
const keyMatch = i => | |
`InternetGatewayDevice.TraceRouteDiagnostics.RouteHops.${i}.HopErrorCode` | |
for (let i = 1; i < details.length; i++) { | |
let resp2 = details.find(x => x.key == keyMatch(i)).value | |
return resp2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment