1
0

copy.js 214 B

12345678910
  1. 'use strict';
  2. var assign = require('./assign')
  3. , value = require('./valid-value');
  4. module.exports = function (obj) {
  5. var copy = Object(value(obj));
  6. if (copy !== obj) return copy;
  7. return assign({}, obj);
  8. };