We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05ddd5 commit 204fd0aCopy full SHA for 204fd0a
dev/Modules/Join.ts
@@ -1,11 +1,11 @@
1
Array.prototype.Join = function <T>(this: T[], char: string, selector?: ((item: T) => any) | string): string {
2
let that: T[] = this;
3
4
- let array: any[] = [];
+ let array: any[] = that;
5
6
if (selector != null) {
7
array = that.Select(selector);
8
}
9
10
return array.join(char);
11
-};
+};
0 commit comments