mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-07 13:31:51 +03:00
10 lines
257 B
JavaScript
10 lines
257 B
JavaScript
module.exports = {
|
|
int2hex: int => int.toString(16).toUpperCase(),
|
|
some: async (array, func) => {
|
|
for (const element of array) {
|
|
if (await func(element)) return true;
|
|
}
|
|
return false;
|
|
},
|
|
wait: time => new Promise(res => setTimeout(res, time))
|
|
}; |