Amy Blankenship
1 min readApr 27, 2020

--

I think it’s much more readable to use lodash get, which also avoids the linting error and allows you to specify a default value for the end result (you don’t need it for the pieces of the path, because get already handles that)

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet