fix all eslint errors
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
export default function getAllMethodNames(obj: Object) {
|
||||
const methods = new Set()
|
||||
|
||||
while (obj = Reflect.getPrototypeOf(obj)) {
|
||||
const keys = Reflect.ownKeys(obj)
|
||||
keys.forEach(k => methods.add(k))
|
||||
}
|
||||
|
||||
return Array.from(methods)
|
||||
export default function getAllMethodNames(obj: Object): string[] {
|
||||
return Reflect.ownKeys(Reflect.getPrototypeOf(obj))
|
||||
.map(name => name.toString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user