Get javascript object property via key name in variable
Say I have something that looks like this in javascripts: var obj = { subObj : {} }; var type = 'subObj'; How can I get obj's subObj w/ type? For instance I would like to do something like: obj.(
https://stackoverflow.com/questions/8556673/get-javascript-object-property-via-key-name-in-variable