Add utils - for deep clone

This commit is contained in:
2018-04-11 11:25:24 +05:30
parent f7542d57c5
commit 1262b69ef5
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export { deepCloneNaive } from './utils';
+3
View File
@@ -0,0 +1,3 @@
export function deepCloneNaive(originalObject) {
return JSON.parse(JSON.stringify(originalObject));
}