Skip to content

Instantly share code, notes, and snippets.

@lucasscariot
Last active November 10, 2017 09:10
Show Gist options
  • Save lucasscariot/0e8ba0ff644614e066a7d9e9449b9375 to your computer and use it in GitHub Desktop.
Save lucasscariot/0e8ba0ff644614e066a7d9e9449b9375 to your computer and use it in GitHub Desktop.
How to pass an extra parameter in a Callback function
function foo(extra param) {
tab.some(tabElement => callbackFunction(tabElement, address)) {
console.log(address);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment