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:
Miikka 2023-11-18 12:51:56 +02:00 committed by GitHub
commit b47db15ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,6 +353,7 @@ const baseValues = {
return [...args].join("");
},
concatArr(arr, separator = "") {
if (!Array.isArray(arr)) return "";
return arr.join(separator);
},
eq(...args) {