DEV Community

Discussion on: Why is Lodash Still Useful?

Collapse
 
ajkachnic profile image
Andrew

Can’t you now using optional chaining instead of _get()

let obj = {
  person: {
    name: "Something"
  }
}
const name = obj?.person?.name
Collapse
 
aumayeung profile image
John Au-Yeung

I'm not sure if it's finalized yet, but hopefully, it will be soon so that we don't need Lodash for it.