diff --git a/v3/src/utils/object/Clone.js b/v3/src/utils/object/Clone.js new file mode 100644 index 000000000..c2cc3e5b6 --- /dev/null +++ b/v3/src/utils/object/Clone.js @@ -0,0 +1,13 @@ +var Clone = function (obj) +{ + var clone = {}; + + for (var key in obj) + { + clone[key] = obj[key]; + } + + return clone; +}; + +module.exports = Clone; diff --git a/v3/src/utils/object/index.js b/v3/src/utils/object/index.js index 41c790ea8..df7ba6e26 100644 --- a/v3/src/utils/object/index.js +++ b/v3/src/utils/object/index.js @@ -2,6 +2,7 @@ module.exports = { + Clone: require('./Clone'), Extend: require('./Extend'), GetAdvancedValue: require('./GetAdvancedValue'), GetMinMaxValue: require('./GetMinMaxValue'),