Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Fix TS errors with noUnusedParameters (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykks authored and fknop committed Mar 17, 2017
1 parent 88948d0 commit 1025a3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/array/chunk.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ChunkPipe implements PipeTransform {
return input;
}

return [].concat.apply([], input.map((elem: any, i: number) => {
return [].concat.apply([], input.map((_elem: any, i: number) => {
return i % size ? [] : [input.slice(i, i + size)];
}));
}
Expand Down
2 changes: 1 addition & 1 deletion src/array/range.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class RangePipe implements PipeTransform {

transform (input: any, size: number = 0, start: number = 1, step: number = 1): any {
transform (_input: any, size: number = 0, start: number = 1, step: number = 1): any {

const range: number[] = [];
for (let length = 0; length < size; ++length) {
Expand Down
4 changes: 2 additions & 2 deletions src/array/without.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export class WithoutPipe implements PipeTransform {
return unwrappedInput;
}

return unwrappedInput.filter((value: any, index: number) =>
return unwrappedInput.filter((value: any) =>
deepIndexOf(args, value) === -1
);
}


return input.filter((value: any, index: number) => args.indexOf(value) === -1);
return input.filter((value: any) => args.indexOf(value) === -1);
}
}

0 comments on commit 1025a3c

Please sign in to comment.