When I get item from localStorage in Chrome, then I get a null. When I do the same in IE10, then I get an error.
Code:
var item = localStorage.getItem('item'); // localStorage 'item' is undefined
How to get a 'null' item value from localStorage in IE10, if the item is undefined?
Update:
A rough translation of IE10 console error from my native language:
Cannot get property "getItem" of reference, that is undefined or "NULL".