Created
October 6, 2017 15:58
-
-
Save mikekavouras/a71bcdc5cf806a3871464d9a4efc5109 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 dimension = "request_id:213:LKJSDF):KJDS:09132" | |
const idx = dimension.indexOf(":") | |
const key = dimension.substr(0, idx) | |
const value = dimension.substr(idx + 1, dimension.length) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment