From 19cbe47ae3db3b4a8940409ab1814ce1a9af3458 Mon Sep 17 00:00:00 2001 From: Alissa <100613971+alissalkvc@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:44:40 -0700 Subject: [PATCH] Prefix param with underscore to prevent unused param warning (#1145) * Prefix param with underscore to prevent unused param warning * Use Object.values since we don't need key --- src/utils/common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/common.ts b/src/utils/common.ts index 692157b7..2af5f69d 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -203,8 +203,8 @@ export function freeze(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 }