Skip to content

Commit

Permalink
Prefix param with underscore to prevent unused param warning (#1145)
Browse files Browse the repository at this point in the history
* Prefix param with underscore to prevent unused param warning

* Use Object.values since we don't need key
  • Loading branch information
alissalkvc committed Sep 19, 2024
1 parent e2d222b commit 19cbe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ export function freeze<T>(obj: any, deep: boolean = false): T {
Object.freeze(obj)
if (deep)
// See #590, don't recurse into non-enumerable / Symbol properties when freezing
// So use Object.entries (only string-like, enumerables) instead of each()
Object.entries(obj).forEach(([key, value]) => freeze(value, true))
// So use Object.values (only string-like, enumerables) instead of each()
Object.values(obj).forEach(value => freeze(value, true))
return obj
}

Expand Down

0 comments on commit 19cbe47

Please sign in to comment.