Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed May 25, 2022
1 parent 75373c1 commit 4429b64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/utils/src/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export function extractExceptionKeysForMessage(exception: Record<string, unknown
/**
* Given any object, return the new object with removed keys that value was `undefined`.
* Works recursively on objects and arrays.
*
* Attention: This function keeps circular references in the returned object.
*/
export function dropUndefinedKeys<T>(val: T): T {
// This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API
Expand Down

0 comments on commit 4429b64

Please sign in to comment.