function upper(obj) {
return Object.keys(obj).map(key => key.toUpperCase())
}
const upper = obj => Object.keys(obj).map(i => i.toUpperCase());
upper({ name: 'Сергей', lastName: 'Петров' });
const upper = obj => Object.values(obj).map(i => i.toUpperCase());
upper({ name: 'Сергей', lastName: 'Петров' });