MCPcopy Create free account
hub / github.com/microsoft/tslib / __classPrivateFieldIn

Function __classPrivateFieldIn

tslib.es6.js:300–303  ·  view source on GitHub ↗
(state, receiver)

Source from the content-addressed store, hash-verified

298}
299
300export function __classPrivateFieldIn(state, receiver) {
301 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
302 return typeof state === "function" ? receiver === state : state.has(receiver);
303}
304
305export function __addDisposableResource(env, value, async) {
306 if (value !== null && value !== void 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…