Is it? Itβs just an optional property. And Typescript will tell you that itβs optional.
People love to complain about npm and node_modules, but I think they were on to something with the simplicity of it.
npm
node_modules
Return undefined.
Typescript.
Why error? Just return undefined. Simple, no try/catch needed.
I had to use Python for a bit at work and it was confusing
pipenv, venv, virtualenv, poetryβ¦wtf is all this shit
a.b vs a['b'] vs a.get('b')β¦wtf is a KeyError
a.b
a['b']
a.get('b')
Is it? Itβs just an optional property. And Typescript will tell you that itβs optional.