In my component i have declarated some data like this:
data() {
return {
defaultValue: {json object with some structure},
activeValue: {}
...
And in component methods a make copy this value:
this.activeValue = this.defaultValue
But problem is, after change this.activeValue
value a have changes in this.defaultValue
too.
If i use Object.freeze(this.defaultValue)
and trying change this.activeValue
i have get error - object is not writable.
How i can make copy of data but without reference?