Skip to content

Instantly share code, notes, and snippets.

@paulmwatson
Created January 15, 2021 12:10
Show Gist options
  • Save paulmwatson/81dfbc0b1481ff70284b5eae4a2821e1 to your computer and use it in GitHub Desktop.
Save paulmwatson/81dfbc0b1481ff70284b5eae4a2821e1 to your computer and use it in GitHub Desktop.
Careful when using sessionStorage as it coerces null into a string
sessionStorage.test
//=> undefined
sessionStorage.test = null
//=> null
sessionStorage.test
//=> "null"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment