Panel creation

This commit is contained in:
Isaac
2021-05-11 23:12:06 +01:00
parent da7188d923
commit 8903f10305
7 changed files with 173 additions and 18 deletions

View File

@@ -1,4 +1,10 @@
module.exports = {
int2hex: (int) => int.toString(16).toUpperCase(),
some: async (array, func) => {
for (let element of array) {
if (await func(element)) return true;
}
return false;
},
wait: (time) => new Promise(res => setTimeout(res, time)),
};