mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +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) {
|
ucfirst(arg) {
|
||||||
return baseValues.upperFirst(arg);
|
return baseValues.upperFirst(arg);
|
||||||
},
|
},
|
||||||
|
arrlen(arg) {
|
||||||
|
if (!Array.isArray(arg)) return 0;
|
||||||
|
return arg.length;
|
||||||
|
},
|
||||||
strlen(arg) {
|
strlen(arg) {
|
||||||
if (typeof arg !== "string") return 0;
|
if (typeof arg !== "string") return 0;
|
||||||
return [...arg].length;
|
return [...arg].length;
|
||||||
|
|
Loading…
Add table
Reference in a new issue