Skip to content

Commit 204fd0a

Browse files
authored
Update Join.ts
1 parent b05ddd5 commit 204fd0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/Modules/Join.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Array.prototype.Join = function <T>(this: T[], char: string, selector?: ((item: T) => any) | string): string {
22
let that: T[] = this;
33

4-
let array: any[] = [];
4+
let array: any[] = that;
55

66
if (selector != null) {
77
array = that.Select(selector);
88
}
99

1010
return array.join(char);
11-
};
11+
};

0 commit comments

Comments
 (0)