mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
arrlen
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
e2d23aa4af
commit
ae49782aa4
1 changed files with 4 additions and 0 deletions
|
@ -395,6 +395,10 @@ const baseValues = {
|
|||
ucfirst(arg) {
|
||||
return baseValues.upperFirst(arg);
|
||||
},
|
||||
arrlen(arg) {
|
||||
if (!Array.isArray(arg)) return 0;
|
||||
return arg.length;
|
||||
},
|
||||
strlen(arg) {
|
||||
if (typeof arg !== "string") return 0;
|
||||
return [...arg].length;
|
||||
|
|
Loading…
Add table
Reference in a new issue