Skip to content

Instantly share code, notes, and snippets.

@meekg33k
Last active March 31, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meekg33k/758f37c29452043b12f593c574cf6084 to your computer and use it in GitHub Desktop.
Save meekg33k/758f37c29452043b12f593c574cf6084 to your computer and use it in GitHub Desktop.
The Non Null Assertion Operator https://medium.com/p/177b4a654ef6
if (isPresentSomeObject(someObject)) {
//Back off compiler, I got this!
someObject!.id = 12;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment