This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//variant of https://gist.github.com/Contra/6368485 | |
(function () { | |
var isStorageAvailable = function (storage) { | |
if (typeof storage == 'undefined') return false; | |
try { // hack for safari incognito | |
storage.setItem("storage", ""); | |
storage.getItem("storage"); | |
storage.removeItem("storage"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* VT100 terminal reset (<ESC>c) */ | |
console.log('\033c'); | |
/* numbers comparations */ | |
> '2' == 2 | |
true | |
> '2' === 2 |