Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update join.pipe.ts
The parameter is called "seperator" not character. Also it should be undefined as default. Ref: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/join
  • Loading branch information
MickL authored Oct 27, 2018
commit 0f73ac0904e9fc763ba4b0d997e5e0f296ac0532
10 changes: 5 additions & 5 deletions src/array/join.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { isArray } from '../utils/utils';
})
export class JoinPipe implements PipeTransform {

transform (input: any, character: string = ''): any {
transform (array: any, seperator: string): any {

if (!isArray(input)) {
return input;
if (!isArray(array)) {
return array;
}

return input.join(character);
return input.join(seperator);
}
}
}