We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d6f8e7 commit c6e38a6Copy full SHA for c6e38a6
1 file changed
packages/vtable/src/tools/join.ts
@@ -1,5 +1,8 @@
1
export function join(strArr: string[], joinChar: string) {
2
// return strArr.join(joinChar);
3
+ if (strArr.length === 0) {
4
+ return undefined;
5
+ }
6
let str = '';
7
for (let i = 0; i < strArr.length; i++) {
8
str += strArr[i];
0 commit comments