Obtener métodos en un objeto 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;
}
};