MCPcopy Create free account
hub / github.com/GoogleChrome/samples / constructor

Method constructor

streams-demo/script.js:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19class UpperCaseTransformStream {
20 constructor() {
21 return new TransformStream({
22 transform(chunk, controller) {
23 controller.enqueue(chunk.toUpperCase());
24 }
25 });
26 }
27}
28
29saveZippedButton.addEventListener("click", async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected