Skip to content

Instantly share code, notes, and snippets.

@littlefyr
Created December 4, 2012 15:59
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 littlefyr/4205471 to your computer and use it in GitHub Desktop.
Save littlefyr/4205471 to your computer and use it in GitHub Desktop.
What is the better approach?
var mapping = 'foo.bar';
var raw = eval('record.raw.' + mapping);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment