You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make a value mandatory, so if a value / key isn't set, I'd like it to blow up.
Is there a way to do this presently? I'm going to just write a helper which wraps Get* and will blow up if the value doesn't exist. Wondering if it's there somewhere and I'm missing it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to make a value mandatory, so if a value / key isn't set, I'd like it to blow up.
Is there a way to do this presently? I'm going to just write a helper which wraps Get* and will blow up if the value doesn't exist. Wondering if it's there somewhere and I'm missing it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions