index.js
function parse(base, key, value) {
  var type = typeof value;

  // resolve local JSON pointers
  if (key === 'href' && type === 'string') return formatHref(base, value);

  // TODO resolve "/" paths
  if (!value || type !== 'object') return value;

  var obj = copy(value);

  if (key === '' || obj.href) seal(base || obj.href, obj, []);

  return obj;
}
function parse(base, key, value) {
  var type = typeof value;

  // resolve local JSON pointers
  if (key === 'href' && type === 'string') return formatHref(base, value);

  // TODO resolve "/" paths
  if (!value || type !== 'object') return value;

  var obj = copy(value);

  if (key === '' || obj.href) seal(base || obj.href, obj, []);

  return obj;
}
function parse ( base , key , value ) { var type = typeof value ; // resolve local JSON pointers if ( key === 'href' && type === 'string' ) return formatHref ( base , value ) ; // TODO resolve "/" paths if ( ! value || type !== 'object' ) return value ; var obj = copy ( value ) ; if ( key === '' || obj . href ) seal ( base || obj . href , obj , [ ] ) ; return obj ; }
Parse a key value pair

@param {String} href
@param {String} key
@param {Any} value
Parse a key value pair