I have a question, how to create nested object from array?
I.e. I have a following array:
var myArr = ['foo', 'bar', 'baz']
and need to make it an object like:
myObj = {foo: { bar: { baz: { } } }}
How can I do that properly?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…