obj = {
age : 18,
sex : m,
status : children
}
obj1 = {
age : '',
sex : '',
status : ''
}
Object.keys(obj1).forEach(key=>{obj1[key]=obj[key]})
console.log(obj1)
obj = {
age : 18,
sex : m,
status : children
}
obj1 = {
age : '',
sex : '',
status : ''
}
Object.keys(obj1).forEach(key=>{obj1[key]=obj[key]})
console.log(obj1)