Buckets:
| const {asyncIterator} = Symbol; | |
| const readBlob = async function* (blob) { | |
| if (blob.stream) { | |
| yield* blob.stream() | |
| } else if (blob.arrayBuffer) { | |
| yield await blob.arrayBuffer() | |
| } else if (blob[asyncIterator]) { | |
| yield* blob[asyncIterator](); | |
| } else { | |
| yield blob; | |
| } | |
| } | |
| export default readBlob; | |
Xet Storage Details
- Size:
- 318 Bytes
- Xet hash:
- 4ae330b71812845adb523f8fe0802b7e7256bc2b055b8d73766a09d105d0d888
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.