From b8900381d6ad616ef7f943c735ccc57d61406822 Mon Sep 17 00:00:00 2001 From: afiqzudinhadi Date: Fri, 12 Jul 2024 15:43:29 +0800 Subject: [PATCH] feat: didn't read the note lol --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index a8f6429..6a8f093 100644 --- a/index.js +++ b/index.js @@ -24,6 +24,11 @@ const groupedArray = array.reduce((newArray, item) => { return newArray; }, []); +console.log( + `Here's your arrays in an array (ordered by first appearance):`, + groupedArray +); + groupedArray.sort((a, b) => { const valueA = a[0]; const valueB = b[0];