orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 134 forks source link

Allow deepGet to error on missing members #967

Open bradjones1 opened 2 years ago

bradjones1 commented 2 years ago

I'm using deepGet() in some userland code and it would be helpful if this used optional chaining to error out on non-existent keys. I don't think this should regress anything in Orbit and better matches the stated goal/operation of the function, anyway?