3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Add upperFirst function

This commit is contained in:
Usoka 2021-05-02 21:31:04 +12:00
parent b1c51e7316
commit da2389891e

View file

@ -316,6 +316,10 @@ const baseValues = {
if (typeof arg !== "string") return arg;
return arg.toUpperCase();
},
upperFirst(arg) {
if (typeof arg !== "string") return arg;
return arg.charAt(0).toUpperCase() + arg.slice(1);
},
rand(from, to, seed = null) {
if (isNaN(from)) return 0;