diff --git a/utils/copyObject.js b/utils/copyObject.js new file mode 100644 index 0000000..126a631 --- /dev/null +++ b/utils/copyObject.js @@ -0,0 +1,7 @@ +'use strict'; + +function copyObject(obj) { + return JSON.parse(JSON.stringify(obj)); +} + +export default copyObject;