Try this one Object.create(<Object>, <new values>)
Clone so both are 100% seperate but equal structure and values? Or refer to the same objects?
Object.assign({}, ...objects);
Old problem, but I just realized that I cant do this: a = JSON.parse(JSON.stringify(b));
Обсуждают сегодня