Получить методы на объект JS
let members = Object.getOwnPropertyNames(foo)
calderwoodra
let members = Object.getOwnPropertyNames(foo)
create()
keys()
values()
entries()
assign()
freeze()
seal()
getPrototypeOf()
const person = {
firstName: "John",
lastName: "Doe",
id: 5566,
fullName: function() {
return this.firstName + " " + this.lastName;
}
};