Skip to content

Instantly share code, notes, and snippets.

@odino
Created April 15, 2018 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odino/80b5773549bd2819fa962fb0048f0c74 to your computer and use it in GitHub Desktop.
Save odino/80b5773549bd2819fa962fb0048f0c74 to your computer and use it in GitHub Desktop.
get(x) {
let result
this.list.forEach(pairs => {
if (pairs[0] === x) {
result = pairs[1]
}
})
return result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment