I copy my array with [...array]
and try to modify something inside but i don't want to modify the original table but it modify my array also and I don't understand why
var users = [{userUID : '123', userName : 'TOTO'},{userUID : '345', userName : 'TITI'},{userUID : '678', userName : 'TATA'}]
var list = [...users]
var listModifie = list.map(x => x.userName = x.userUID == '678' ? '' : x.userName)
console.log(users)
So what I want to do is copy the table get the data modify a specific data but not modify my users list