How to duplicate object properties in another object? [duplicate] October 10, 2022 by Tarik for(var k in firstObject) secondObject[k]=firstObject[k];