MCPcopy
hub / github.com/tc39/proposal-observable / getMethod

Function getMethod

src/Observable.js:22–33  ·  view source on GitHub ↗
(obj, key)

Source from the content-addressed store, hash-verified

20}
21
22function 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
35function cleanupSubscription(subscription) {
36

Callers 5

SubscriptionFunction · 0.85
nextFunction · 0.85
errorFunction · 0.85
completeFunction · 0.85
fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected