diff options
Diffstat (limited to 'usecaseui-portal/src/app/shared')
-rw-r--r-- | usecaseui-portal/src/app/shared/utils/utils.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usecaseui-portal/src/app/shared/utils/utils.ts b/usecaseui-portal/src/app/shared/utils/utils.ts index 63e19075..0633778c 100644 --- a/usecaseui-portal/src/app/shared/utils/utils.ts +++ b/usecaseui-portal/src/app/shared/utils/utils.ts @@ -104,13 +104,13 @@ export class Util { if (!this.deepCheck(target[i])) { return false; } - } + } } else if (type === '[object Object]') { for (const prop in target) { if (target.hasOwnProperty(prop)) { - if (!this.deepCheck(target[prop])) { - return false; - } + if (!this.deepCheck(target[prop])) { + return false; + } } } } else { @@ -124,10 +124,10 @@ export class Util { } pick(obj: object, arr: Array<string>): Object { return arr.reduce((iter, val) => { - if(val in obj) { - iter[val] = obj[val]; - } - return iter; + if(val in obj) { + iter[val] = obj[val]; + } + return iter; }, {}); } }
\ No newline at end of file |