tiptap/packages/core/src/utils/getAllMethodNames.ts
2020-09-24 09:49:46 +02:00

5 lines
157 B
TypeScript

export default function getAllMethodNames(obj: Object): string[] {
return Reflect.ownKeys(Reflect.getPrototypeOf(obj))
.map(name => name.toString())
}