From 0f73ac0904e9fc763ba4b0d997e5e0f296ac0532 Mon Sep 17 00:00:00 2001 From: Mick Lawitzke Date: Sat, 27 Oct 2018 16:10:01 +0200 Subject: [PATCH] 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 --- src/array/join.pipe.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/array/join.pipe.ts b/src/array/join.pipe.ts index f1e310f..208087e 100644 --- a/src/array/join.pipe.ts +++ b/src/array/join.pipe.ts @@ -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); } -} \ No newline at end of file +}