Let me try to explain this, I have a string like this:
"b.c"
And an object like this:
a = {
b:{
c:2
}
}
I would like to use that string to get the c property, but using this doesn’t work:
a["b.c"]
How can I use the "b.c" string to work just like a.b.c? (Without using eval, perfomance is important in my case)
What about something like this: