utils/vs-restify.js
/**
 * Return a shallow copy of the given object;
 */
Return a shallow copy of the given object.
Return a shallow copy of the given object .
function shallowCopy(obj) {
  if (!obj) {
    return (obj);
  }
  var copy = {};
  Object.keys(obj).forEach(function (k) {
    copy[k] = obj[k];
  });
  return (copy);
}
function shallowCopy ( obj ) { if ( ! obj ) { return ( obj ) ; } var copy = { } ; Object . keys ( obj ) . forEach ( function ( k ) { copy [ k ] = obj [ k ] ; } ) ; return ( copy ) ; }
Return a shallow copy of the given object;
Return a shallow copy of the given object ;