Skip to content

Instantly share code, notes, and snippets.

@agar3s
Created December 6, 2014 20:14
Show Gist options
  • Save agar3s/0be423c19d947a9bb3af to your computer and use it in GitHub Desktop.
Save agar3s/0be423c19d947a9bb3af to your computer and use it in GitHub Desktop.
function main(operation){
return (new Function('return ' + operation))();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment