I'm trying to do the following, is this possible?
var objectName = {prop: 'value'};
var stringName = 'objectName';
console.log([stringName]) // output {prop: 'value'}
Update: There are actually a few ways to do this, which I was already aware of but it seems this was more an issue to do with how babel compiled imported objects. Apologies for such a dull question...