Try using
this.user = Object.assign({}, currentObject);
As mentioned by @AngularFrance, this will only work for shallow-copying objects, seek another implementation if there's a need to deep-copy an object.
548k questions
547k answers
4 comments
86.3k users