Skip to content

Commit 4429b64

Browse files
committed
Add comment
1 parent 75373c1 commit 4429b64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/utils/src/object.ts

+2
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ export function extractExceptionKeysForMessage(exception: Record<string, unknown
206206
/**
207207
* Given any object, return the new object with removed keys that value was `undefined`.
208208
* Works recursively on objects and arrays.
209+
*
210+
* Attention: This function keeps circular references in the returned object.
209211
*/
210212
export function dropUndefinedKeys<T>(val: T): T {
211213
// This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API

0 commit comments

Comments
 (0)