First upload version 0.0.1

This commit is contained in:
Neyra
2026-02-05 15:27:49 +08:00
commit 8e9b7201ed
4182 changed files with 593136 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { getConsoleLogPrefix } from "../../utils/getConsoleLogPrefix.js";
/**
* Returns a promise that resolves to true if every promise in the array resolves to true, otherwise false.
* Note that this function will not throw on error and instead will log the error to the console.
*/
export async function asyncEvery(promises) {
try {
return (await Promise.all(promises)).every(Boolean);
}
catch (err) {
console.error(getConsoleLogPrefix(false, false), err);
return false;
}
}
//# sourceMappingURL=asyncEvery.js.map