Created
April 28, 2014 08:18
-
-
Save edwardsmit/11365242 to your computer and use it in GitHub Desktop.
Using the NodeJS equivalent of eval to help in selecting the contents of properties within nested objects, using 'dot-notation'
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
var sandbox = {}; | |
require('vm').runInNewContext('x["dot.notated"]', {x: {'dot.notated':'hello'}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment