function clone (obj) {
  var newObj = {};

  // Return a new obj if no `obj` passed in
  if (!obj || typeof obj !== 'object' || Array.isArray(obj))
    return newObj;

  for (var prop in obj)
    newObj[prop] = obj[prop];
  return newObj;
}
function clone (obj) {
  var newObj = {};

  // Return a new obj if no `obj` passed in
  if (!obj || typeof obj !== 'object' || Array.isArray(obj))
    return newObj;

  for (var prop in obj)
    newObj[prop] = obj[prop];
  return newObj;
}
function clone ( obj ) { var newObj = { } ; // Return a new obj if no `obj` passed in if ( ! obj || typeof obj !== 'object' || Array . isArray ( obj ) ) return newObj ; for ( var prop in obj ) newObj [ prop ] = obj [ prop ] ; return newObj ; }
Clones an object properties onto a new object

@param {Object} obj
@return {Object}
Clones an object properties onto a new object