Buckets:
arudradey/ml-cpu-storage / emsdk /upstream /emscripten /node_modules /html-minifier-terser /src /utils.js
| export async function replaceAsync(str, regex, asyncFn) { | |
| const promises = []; | |
| str.replace(regex, (match, ...args) => { | |
| const promise = asyncFn(match, ...args); | |
| promises.push(promise); | |
| }); | |
| const data = await Promise.all(promises); | |
| return str.replace(regex, () => data.shift()); | |
| } | |
Xet Storage Details
- Size:
- 300 Bytes
- Xet hash:
- bf64ef5e0b178a22d0e0d0fe6e2744250d99ce7ee9e56887f27f4aa80ca87e5f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.