Plato on Github
Report Home
node_modules/es5-ext/object/copy.js
Maintainability
74.35
Lines of code
10
Difficulty
7.88
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; var assign = require('./assign') , value = require('./valid-value'); module.exports = function (obj) { var copy = Object(value(obj)); if (copy !== obj) return copy; return assign({}, obj); };