From 5f4b09ead554f54b6c336841db269517bde869a0 Mon Sep 17 00:00:00 2001 From: Alex Szabo Date: Fri, 15 Dec 2023 23:35:54 +0100 Subject: [PATCH] fix: use object values instead of entries --- bundle.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle.min.js b/bundle.min.js index c7cd98e..5d471cf 100644 --- a/bundle.min.js +++ b/bundle.min.js @@ -47233,7 +47233,7 @@ } function deduplicateBy(array, field) { - return Object.entries(array.reduce((acc, s) => { + return Object.values(array.reduce((acc, s) => { acc[s[field]] = s; return acc; }, {}));