Dynamically access multi-level object key [duplicate]
问题 This question already has answers here : Accessing nested JavaScript objects with string key (33 answers) Javascript: How to Get Object property using Array of string? [duplicate] (7 answers) Set nested item in object/array from array of keys (3 answers) Closed 4 months ago . I have a JavaScript object, that is multiple levels deep, for example: let obj = [ { "testKeyOne": "one", "testKeyTwo": "two" }, { "testKeyThree": "three", "testKeyFour": "four", "testKeyFive": { "testKeyFiveAndAHalf":