Fetch API & Handling JSON Responses
What feature of the Fetch API does this code demonstrate?
const response = await fetch('/api/data');
const reader = response.body.getReader();
while(true) {
const {done, value} = await reader.read();
if (done) break;
console.log('Received chunk:', value);
}