Skip to content

Commit

Permalink
Avoid errors when running in strictNullChecks mode. (danrevah#29) (da…
Browse files Browse the repository at this point in the history
  • Loading branch information
softsimon authored and danrevah committed Feb 20, 2017
1 parent 15f35a3 commit fefec51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/pipes/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ export function extractDeepPropertyByMapKey(obj: any, map: string): any {
return !isUndefined(prop) && !isUndefined(prop[key])
? prop[key]
: undefined;
}, obj[key]);
}, obj[key || '']);
}
2 changes: 1 addition & 1 deletion src/app/pipes/object/invert-by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {isObject} from '../helpers/helpers';
@Pipe({name: 'invertBy'})
export class InvertByPipe implements PipeTransform {

transform(obj: any, cb: Function = null): Object {
transform(obj: any, cb?: Function): Object {
if (Array.isArray(obj) || !isObject(obj)) {
return obj;
}
Expand Down

0 comments on commit fefec51

Please sign in to comment.