From 6b964afa76c56eb3c5d338a4fba70edd9b63bae0 Mon Sep 17 00:00:00 2001 From: Gabriel Bernardini Date: Sat, 29 Oct 2022 12:52:12 -0300 Subject: [PATCH] =?UTF-8?q?refactor(mostrepeatedchar):deixando=20o=20c?= =?UTF-8?q?=C3=B3digo=20mais=20apresentavel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 09-mostRepeatedChar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/09-mostRepeatedChar/index.js b/09-mostRepeatedChar/index.js index f2e9fee..58c9842 100644 --- a/09-mostRepeatedChar/index.js +++ b/09-mostRepeatedChar/index.js @@ -8,5 +8,5 @@ export function mostUsedChar(text) { const maxVal = Math.max(...Object.values(counts)); const num = Object.keys(counts).find((key) => counts[key] === maxVal); - return num; + return num; } \ No newline at end of file