and I trying to clone an object with Object assing.
const defaults = { a: [], b: [], c: [], d: [], e: [], f: [], g: [] }; this.rowSetSlug = Object.assign({},defaults); this.rowSetObject = Object.assign({},defaults); this.rowSetModified = Object.assign({},defaults);
But when I fill one object like
this.rowSetObject.push(object);
And do a console.log()
console.log(this.rowSetObject);
console.log(this.rowSetModified);
console.log(this.rowSetSlug);
All same have the rowSetObject items, and if i fill another they replicate.
Thanks