Skip to content

Commit

Permalink
fix: use object values instead of entries
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Dec 15, 2023
1 parent b3f0f9e commit 5f4b09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}, {}));
Expand Down

0 comments on commit 5f4b09e

Please sign in to comment.