Obtener métodos en un objeto JS
let members = Object.getOwnPropertyNames(foo)
calderwoodra
let members = Object.getOwnPropertyNames(foo)