MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / has

Method has

examples/io/streams/modules/streams.js:35–38  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

33 throw new TypeError(`${name} is no ${this.name}`);
34 }
35 has(it) {
36 let internal = it?.[this.token];
37 return internal !== undefined;
38 }
39 set(it, internal) {
40 it[this.token] = internal;
41 }

Callers 15

onDiscoveredMethod · 0.45
ReadableStreamPipeToFunction · 0.45
ReadableStreamTeeFunction · 0.45
ReadableStreamDefaultTeeFunction · 0.45
ReadableByteStreamTeeFunction · 0.45
pullWithDefaultReaderFunction · 0.45
pullWithBYOBReaderFunction · 0.45
ReadableStreamCancelFunction · 0.45
ReadableStreamCloseFunction · 0.45
ReadableStreamErrorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected