Skip to content

Commit 0f774f4

Browse files
committed
fix: linting problem
1 parent 20910eb commit 0f774f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default function removeUndefinedObjects<T>(obj?: T): T | undefined {
6464

6565
// JSON.stringify removes undefined values. Though `[undefined]` will be converted with this to
6666
// `[null]`, we'll clean that up next.
67+
// eslint-disable-next-line try-catch-failsafe/json-parse
6768
let withoutUndefined = JSON.parse(JSON.stringify(obj));
6869

6970
// Then we recursively remove all empty objects and nullish arrays.

0 commit comments

Comments
 (0)