Skip to content

Instantly share code, notes, and snippets.

@marcinOz
Created June 5, 2019 19:14
Show Gist options
  • Save marcinOz/6c3bd5e90feef3f60e8003f85b2597c0 to your computer and use it in GitHub Desktop.
Save marcinOz/6c3bd5e90feef3f60e8003f85b2597c0 to your computer and use it in GitHub Desktop.
// Assign a value to b if b is null; otherwise, b stays the same
b ??= value;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment