Skip to content

Instantly share code, notes, and snippets.

@Shakil-Shahadat
Last active September 24, 2019 07:25
Show Gist options
  • Save Shakil-Shahadat/36f1cd6f8600c59e3f7132151b3bc329 to your computer and use it in GitHub Desktop.
Save Shakil-Shahadat/36f1cd6f8600c59e3f7132151b3bc329 to your computer and use it in GitHub Desktop.
Check for localStorage/sessionStorage
if ( typeof( Storage ) !== 'undefined' )
{
console.log( 'Storage Exists!' );
}
else
{
console.log( 'Storage doesn\'t Exists!' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment