I've seen quite some related questions and google results, but none seem to match my problem.
I'm getting a string "header.h2" which I want to contencate to 'var objects
'.
So I want objects.header.h2
(which contains more hash data).
However, I don't want to use eval() or the often suggested buttons[]
for the obvious reason that buttons[header.h2
] won't work and I would need buttons[header][h2]
.
So how can I remain the object notation, or in the worst case, solve my problem?