mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Merge pull request #378 from rubyowo/concatArr-crash-fix
fix: crash when the arr argument for concatArr isn't specified
This commit is contained in:
commit
b47db15ad2
1 changed files with 1 additions and 0 deletions
|
@ -353,6 +353,7 @@ const baseValues = {
|
||||||
return [...args].join("");
|
return [...args].join("");
|
||||||
},
|
},
|
||||||
concatArr(arr, separator = "") {
|
concatArr(arr, separator = "") {
|
||||||
|
if (!Array.isArray(arr)) return "";
|
||||||
return arr.join(separator);
|
return arr.join(separator);
|
||||||
},
|
},
|
||||||
eq(...args) {
|
eq(...args) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue