Skip to content

Commit ddc067d

Browse files
committed
Replace cloneDeep method of Lodash from JSON
1 parent fb7b674 commit ddc067d

File tree

1 file changed

+3
-1
lines changed
  • packages/optimizely-sdk/lib/utils/fns

1 file changed

+3
-1
lines changed

packages/optimizely-sdk/lib/utils/fns/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ module.exports = {
3939
return to;
4040
}
4141
},
42-
cloneDeep: require('lodash/cloneDeep'),
42+
cloneDeep: function(object) {
43+
return JSON.parse(JSON.stringify(object));
44+
},
4345
currentTimestamp: function() {
4446
return Math.round(new Date().getTime());
4547
},

0 commit comments

Comments
 (0)