source/StorageInterface.js
function(key, defaultValue) {
        var value = window.localStorage.getItem(key);
        return value ? JSON.parse(value) : defaultValue;
    }
function(key, defaultValue) {
        var value = window.localStorage.getItem(key);
        return value ? JSON.parse(value) : defaultValue;
    }
function ( key , defaultValue ) { var value = window . localStorage . getItem ( key ) ; return value ? JSON . parse ( value ) : defaultValue ; }
Get data from storage
@memberof StorageInterface
@name getData
@static
@param {String} key The key to fetch for
@param {*} defaultValue The default value if the key is not found
@returns {*} The fetched data
Get data from storage