Explodey
A utility that disallows accessing undefined properties on objects.
const foo = ; fooa // => truefooz // => throws Error! const otherFoo = ...foo ; otherFoobaz // => undefined JSON // => '{ "a": "true, "b": true, "c": true}'
Why?
Because sometimes its nice to not have to worry about undefined references on things like:
- Constants
- Business critical values
- Stuff like that
someObject.get("propertyThatGetsCheckedByHooks")
?
What not just use the classical "getter" - like: Because I feel that style is better for a situation where the hooks underneath the .get()
are cover business-y logic situations and I want something else... something less.