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:
parent
b1c51e7316
commit
da2389891e
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue