analytics.js
function store(key, value){
  var length = arguments.length;
  if (0 == length) return all();
  if (2 <= length) return set(key, value);
  if (1 != length) return;
  if (null == key) return storage.clear();
  if ('string' == typeof key) return get(key);
  if ('object' == typeof key) return each(key, set);
}
function store(key, value){
  var length = arguments.length;
  if (0 == length) return all();
  if (2 <= length) return set(key, value);
  if (1 != length) return;
  if (null == key) return storage.clear();
  if ('string' == typeof key) return get(key);
  if ('object' == typeof key) return each(key, set);
}
function store ( key , value ) { var length = arguments . length ; if ( 0 == length ) return all ( ) ; if ( 2 <= length ) return set ( key , value ) ; if ( 1 != length ) return ; if ( null == key ) return storage . clear ( ) ; if ( 'string' == typeof key ) return get ( key ) ; if ( 'object' == typeof key ) return each ( key , set ) ; }
Store the given `key`, `val`.

@param {String|Object} key
@param {Mixed} value
@return {Mixed}
@api public
Store the given key val .