Skip to content

Commit 8619d26

Browse files
committed
Replace cloneDeep method of Lodash from JSON
1 parent 31b5a4d commit 8619d26

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
@@ -20,7 +20,9 @@ var MAX_NUMBER_LIMIT = Math.pow(2, 53);
2020
module.exports = {
2121
assign: require('lodash/assign'),
2222
assignIn: require('lodash/assignIn'),
23-
cloneDeep: require('lodash/cloneDeep'),
23+
cloneDeep: function(object) {
24+
return JSON.parse(JSON.stringify(object));
25+
},
2426
currentTimestamp: function() {
2527
return Math.round(new Date().getTime());
2628
},

0 commit comments

Comments
 (0)