daftar metode objek js
Object.getOwnPropertyNames(obj)
P.S.
Object.getOwnPropertyNames(obj)
getMethods = (obj) => Object.getOwnPropertyNames(obj).filter(item => typeof obj[item] === 'function')