diff --git a/src/app/pipes/object/invert.ts b/src/app/pipes/object/invert.ts index 576f2283..f8acace6 100644 --- a/src/app/pipes/object/invert.ts +++ b/src/app/pipes/object/invert.ts @@ -10,6 +10,8 @@ export class InvertPipe implements PipeTransform { } return Object.keys(obj) - .reduce((o, k) => Object.assign(o, {[obj[k]]: k}), {}); + .reduce((o, k) => { + return Object.assign(o, {[obj[k]]: k}) + }, {}); } } diff --git a/src/app/pipes/object/omit.ts b/src/app/pipes/object/omit.ts index caa3accc..e5f5446f 100644 --- a/src/app/pipes/object/omit.ts +++ b/src/app/pipes/object/omit.ts @@ -11,6 +11,8 @@ export class OmitPipe implements PipeTransform { return Object.keys(obj) .filter(k => !~args.indexOf(k)) - .reduce((o, k) => Object.assign(o, {[k]: obj[k]}), {}); + .reduce((o, k) => { + return Object.assign(o, {[k]: obj[k]}); + }, {}); } } diff --git a/src/app/pipes/object/pick.ts b/src/app/pipes/object/pick.ts index 5d6a61c1..8f91c101 100644 --- a/src/app/pipes/object/pick.ts +++ b/src/app/pipes/object/pick.ts @@ -9,6 +9,8 @@ export class PickPipe implements PipeTransform { return obj; } - return args.reduce((o, k) => Object.assign(o, {[k]: obj[k]}), {}); + return args.reduce((o, k) => { + return Object.assign(o, {[k]: obj[k]}); + }, {}); } }