pruneNullishValues: remove unneeded conditional
This commit is contained in:
@@ -12,7 +12,7 @@ export function pruneNullishValues<T>(input: T): PruneNullishValues<T> {
|
|||||||
const result: any = {}
|
const result: any = {}
|
||||||
for (const [key, value] of Object.entries(input)) {
|
for (const [key, value] of Object.entries(input)) {
|
||||||
if (value != undefined) {
|
if (value != undefined) {
|
||||||
result[key] = isObject(value) ? pruneNullishValues(value) : value
|
result[key] = pruneNullishValues(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user