I have the following situation:
let a=[{nome:"oi"},{nome:"xau"}]
let b=Object.assign([], a)
b[0].nome=5
console.log(b) //[{nome:5},{nome:xau}]
console.log(a) //[{nome:5},{nome:xau}]
A little while ago I asked here how to pass values witho...
asked by
23.03.2018 / 17:08