3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Tiago R 2023-10-09 09:48:36 +00:00 committed by GitHub
parent e2d23aa4af
commit ae49782aa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;