https://rgblog.ru/programmirovanie/javascript/obnovlenie-vsekh-znachenii-v-obekte-na-javascript/
Обновление всех значений в объекте на JavaScript