Prettier fixes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
module.exports = function(obj) {
|
||||
/* istanbul ignore if */
|
||||
if (null === obj || "object" !== typeof obj) {
|
||||
return obj
|
||||
return obj;
|
||||
}
|
||||
var copy = obj.constructor()
|
||||
var copy = obj.constructor();
|
||||
for (var attr in obj) {
|
||||
if (obj.hasOwnProperty(attr)) {
|
||||
copy[attr] = obj[attr]
|
||||
copy[attr] = obj[attr];
|
||||
}
|
||||
}
|
||||
return copy
|
||||
}
|
||||
return copy;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user