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

Method constructor

transformstream-demo/script.js:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4class UpperCaseTransformStream {
5 constructor() {
6 return new TransformStream({
7 transform(chunk, controller) {
8 controller.enqueue(chunk.toUpperCase());
9 },
10 });
11 }
12}
13
14button.addEventListener('click', async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected