|
|
|
|
|
by djfm
3271 days ago
|
|
Well "a.b.c" violates the principle that you should never access a property more than one level deep anyway ;) But in this case it's pretty straightforward to write a function like "get('b', 'c')(a)" or use a lib like lodash [1] [1]: https://lodash.com/docs/#get |
|