Comment Comment by simlevesque Don't use it with dates, it breaks them. You'll lose the data.# var a = new Date();# cloneDeep({ a }).a === { a }.a;This returns false. Use JSON.stringify if you care about the content. cloneDeep might be useful if you don't care about data integrity. parent simlevesque 8 years ago
# var a = new Date();
# cloneDeep({ a }).a === { a }.a;
This returns false. Use JSON.stringify if you care about the content. cloneDeep might be useful if you don't care about data integrity.