I am using lodash#get that does exactly that.
By using lodash-es package, you can import only the get function so it's also very light.


Yes, _.get does the same job, but as you can see on packagephobia.now.sh/, Lodash.get is 1.8kb (minified+gziped) vs Mjn 307bytes (minified+gziped).
When using Preact, Inferno, Hyper, having a lighter bundle does the difference!

Classic DEV Post from Feb 3

Why do you code?

I've been coding for almost 2yrs and I still kept asking myself the same questi...

Join dev.to ❀️

The heartbeat of the software industry.