Browse Source
Fix hasNotDefinedValuesInObject() in object.helper.ts (#2421)
pull/2439/head
Vlad Prodan
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
apps/api/src/helper/object.helper.ts
|
@ -3,7 +3,7 @@ import { cloneDeep, isArray, isObject } from 'lodash'; |
|
|
|
|
|
|
|
|
export function hasNotDefinedValuesInObject(aObject: Object): boolean { |
|
|
export function hasNotDefinedValuesInObject(aObject: Object): boolean { |
|
|
for (const key in aObject) { |
|
|
for (const key in aObject) { |
|
|
if (aObject[key] === null || aObject[key] === null) { |
|
|
if (aObject[key] === null || aObject[key] === undefined) { |
|
|
return true; |
|
|
return true; |
|
|
} else if (isObject(aObject[key])) { |
|
|
} else if (isObject(aObject[key])) { |
|
|
return hasNotDefinedValuesInObject(aObject[key]); |
|
|
return hasNotDefinedValuesInObject(aObject[key]); |
|
|