if i have an array
const arr = ['this', 'is', 'my', 'test'];
how can i dynamically do
myObj[arr[0]][arr[1]][arr[2]]
没有评论:
发表评论