DEV Community

Discussion on: Accessing Nested Objects in JavaScript

Collapse
 
kepta profile image
Kushan Joshi

Instead of reinventing wheel, I highly suggest looking at lenses randycoulman.com/blog/2016/07/12/t...

Collapse
 
flexdinesh profile image
Dinesh Pandiyan

I am a big fan of Lodash and have heard a great deal about Ramda too. But most of the time I find myself working on a small project that doesn't need 99% of the utils in these libraries, especially on the front-end. In those cases, I prefer to either write the util on my own or use a micro library that works for my project. But anyway thanks for letting me know about lenses. This looks pretty interesting and I'm going to take a closer look at how it works internally.

Collapse
 
brownieboy profile image
Michael Brown

import _get from "lodash/get";