skip to Main Content

How to re-group an array in javascript?

I have this set of array in my javascript. var array = [ ['Jack', 'A'], ['Jack', 'A'], ['Sara', 'A'], ['Jack', 'B'], ['Peter', 'B'], ['Sara', 'C'], ['Sara', 'B'], ['Sara', 'A'], ['Sara', 'B'], ['Peter', 'B'], ['Peter', 'A'], ['Peter', 'C'] ]; my goal…

VIEW QUESTION
Back To Top
Search