(obj: Object)
| 89 | } |
| 90 | |
| 91 | function getMethodNames(obj: Object) { |
| 92 | const result = new Set<string>(); |
| 93 | |
| 94 | let proto = obj; |
| 95 | while (proto) { |
| 96 | for (const key of Object.getOwnPropertyNames(proto)) { |
| 97 | if ( |
| 98 | key[0] !== '_' && |
| 99 | typeof obj[key] === 'function' && |
| 100 | key !== 'fire' && |
| 101 | key !== 'setEventedParent' |
| 102 | ) { |
| 103 | result.add(key); |
| 104 | } |
| 105 | } |
| 106 | proto = Object.getPrototypeOf(proto); |
| 107 | } |
| 108 | return Array.from(result); |
| 109 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…