analytics.js
function alias (obj, method) {
  switch (type(method)) {
    case 'object': return aliasByDictionary(clone(obj), method);
    case 'function': return aliasByFunction(clone(obj), method);
  }
}
function alias (obj, method) {
  switch (type(method)) {
    case 'object': return aliasByDictionary(clone(obj), method);
    case 'function': return aliasByFunction(clone(obj), method);
  }
}
function alias ( obj , method ) { switch ( type ( method ) ) { case 'object' : return aliasByDictionary ( clone ( obj ) , method ) ; case 'function' : return aliasByFunction ( clone ( obj ) , method ) ; } }
Alias an `object`.

@param {Object} obj
@param {Mixed} method
Alias an object .