NovichokJS,
const user = {
name: 'Alex',
age: 32,
offer() {
console.log(`${this.name} have invited`);
},
};
function getProperties(obj) {
return Object.entries(obj).filter(([_, value]) => typeof value !== 'function').map(a => a.join(': '));
}
console.log(getProperties(user));