mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 14:58:30 +08:00
many update
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
exports.sleep = (ms) => {
|
||||
/*
|
||||
* Common functions - can be used in frontend or backend
|
||||
*/
|
||||
|
||||
export function sleep(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
export function ucfirst(str) {
|
||||
const firstLetter = str.substr(0, 1);
|
||||
return firstLetter.toUpperCase() + str.substr(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user