what is the problem that you are facing
2019年02月25日06分15秒
Try some already raised question on stackoverflow stackoverflow.com/questions/28150967/typescript-cloning-object
2019年02月24日06分15秒
Side note: Object.assign() is for shallow copies (NOT deep copies), which in the case of this question should work.
2019年02月24日06分15秒
You're right, edited.
2019年02月24日06分15秒
For deep copies, there's always the controversial obj = JSON.parse(JSON.stringify(o));
2019年02月24日06分15秒
Spread is syntactic sugar: this.user = { ...currentObject }
2019年02月24日06分15秒
AngularChef does JSON.stringify work well with dates? I had issues in the recent past.
2019年02月25日06分15秒
How can I use it? _.cloneDeep(...) gives me an Cannot find name '_'. error.
2019年02月24日06分15秒
import * as _ from 'lodash';
2019年02月24日06分15秒