Javascript reflection: Get nested objects path

前端 未结 3 684
感情败类
感情败类 2021-01-03 02:35

In this stackoverflow thread, i learnt you can get a object path via a simple string.

Accessing nested JavaScript objects with string key

consider the follow

3条回答
  •  感动是毒
    2021-01-03 03:29

    I found the following solution on github.

    https://github.com/mariocasciaro/object-path

提交回复
热议问题