From fad89ce694b34b97e40378832cd8a22eb67ead86 Mon Sep 17 00:00:00 2001 From: laubot Date: Fri, 20 Oct 2023 09:22:22 -0500 Subject: [PATCH] nombres unicos en el dashboard --- public/index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index 3fb14ee..05878c3 100644 --- a/public/index.html +++ b/public/index.html @@ -115,6 +115,10 @@ console.error("Error getting documents: ", e); } } + + function uniqByKeepLast(a, key) { + return [...new Map(a.map(x => [key(x), x])).values()] + }