(obj, key)
| 20 | } |
| 21 | |
| 22 | function getMethod(obj, key) { |
| 23 | |
| 24 | let value = obj[key]; |
| 25 | |
| 26 | if (value == null) |
| 27 | return undefined; |
| 28 | |
| 29 | if (typeof value !== "function") |
| 30 | throw new TypeError(value + " is not a function"); |
| 31 | |
| 32 | return value; |
| 33 | } |
| 34 | |
| 35 | function cleanupSubscription(subscription) { |
| 36 |
no outgoing calls
no test coverage detected