Last active
December 21, 2022 06:16
-
-
Save justsml/6ad9e37a96ad1f3a75ca509038510a5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OPTION #1: no temp streamProcessor var | |
fetch(...) | |
.then(progressHelper(console.log)) | |
// ⚠️ OR️ ️⚠️ | |
// OPTION #2: define a `streamProcessor` to hold our console logger | |
const streamProcessor = progressHelper(console.log) | |
fetch(...) | |
.then(streamProcessor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment