lib/ui/public/javascripts/internal/01-services.js
function (key, value) {
      if (!supported) {
        try {
          $cookieStore.set(key, value);
          return value;
        } catch (e) {
          console.log('Local Storage not supported, make sure you have the $cookieStore supported.');
        }
      }
      var saver = JSON.stringify(value);
      storage.setItem(key, saver);
      return privateMethods.parseValue(saver);
    }
function (key, value) {
      if (!supported) {
        try {
          $cookieStore.set(key, value);
          return value;
        } catch (e) {
          console.log('Local Storage not supported, make sure you have the $cookieStore supported.');
        }
      }
      var saver = JSON.stringify(value);
      storage.setItem(key, saver);
      return privateMethods.parseValue(saver);
    }
function ( key , value ) { if ( ! supported ) { try { $cookieStore . set ( key , value ) ; return value ; } catch ( e ) { console . log ( 'Local Storage not supported, make sure you have the $cookieStore supported.' ) ; } } var saver = JSON . stringify ( value ) ; storage . setItem ( key , saver ) ; return privateMethods . parseValue ( saver ) ; }
Set - let's you set a new localStorage key pair set

@param key -
a string that will be used as the accessor for the pair
@param value -
the value of the localStorage item
@return {*} - will return whatever it is you've stored in the local storage
Set - let s you set a new localStorage key pair set