Copy arrays using .splice() or Array.from(players); Copy objects using Object.assign({}, person, { number: 99, age: 12 }); This way only clones an object 1 level deep; otherwise find clonedeep function