Open this example in the interactive library
Source code
import { Blob } from "node:buffer";
console.log(
await (async () => {
const r = new Response("ok");
await r.text();
return r.bodyUsed;
})(),
);
Sample output
true

Open this example in the interactive library
import { Blob } from "node:buffer";
console.log(
await (async () => {
const r = new Response("ok");
await r.text();
return r.bodyUsed;
})(),
);
true