Skip to content

Commit 5b69594

Browse files
committed
ref(utils): Keep non-enumerable properties in dropUndefinedKeys.
1 parent 35bdc87 commit 5b69594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/object.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function _dropUndefinedKeys<T>(inputValue: T, memoizationMap: Map<unknown, unkno
234234
// Store the mapping of this value in case we visit it again, in case of circular data
235235
memoizationMap.set(inputValue, returnValue);
236236

237-
for (const key of Object.keys(inputValue)) {
237+
for (const key of Object.getOwnPropertyNames(inputValue)) {
238238
if (typeof inputValue[key] !== 'undefined') {
239239
returnValue[key] = _dropUndefinedKeys(inputValue[key], memoizationMap);
240240
}

0 commit comments

Comments
 (0)