pruneNullishValues: remove unneeded conditional

This commit is contained in:
MapleLeaf
2022-01-11 16:21:54 -06:00
parent 53331880ba
commit 42e8cbf754

View File

@@ -12,7 +12,7 @@ export function pruneNullishValues<T>(input: T): PruneNullishValues<T> {
const result: any = {}
for (const [key, value] of Object.entries(input)) {
if (value != undefined) {
result[key] = isObject(value) ? pruneNullishValues(value) : value
result[key] = pruneNullishValues(value)
}
}
return result