is it possible to find an object from an array and return an object not his reference?
let found = this.clonedAllIconsMatching.find((obj) => obj.id == header.id);
the found variable is a reference I need to have an object, I want a copy of the object, and I want to change only the properties of the found object, not the object contained in the array.
If you are using ES2018, you can use spread syntax: {...obj}. Otherwise, you can iterate through and copy the keys and values:
// obj is the object to clone
var o = {}; // The copy
for(var i in obj){
o[i] = obj[i];
}