]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/object/copy.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / object / copy.js
1 'use strict';
2
3 var assign = require('./assign')
4   , value  = require('./valid-value');
5
6 module.exports = function (obj) {
7         var copy = Object(value(obj));
8         if (copy !== obj) return copy;
9         return assign({}, obj);
10 };