let object1 = {
title: null,
description: null
}
let object2 = {
title: '222',
description: '222',
wtf: false
}
let object1 = {
title: '222',
description: '222'
}
for (key in object1) {
if (object1.hasOwnProperty(key) && object2.hasOwnProperty(key))
object1[key] = object2[key]
}