I've been trying to filter this array to only show the first unique 0 index of an array within an array.
My array is already sorted by the 1 index.
let players = [["Jim", "100"], ["Brett", "32"], ["Brett", "20"], ["Jim", "20"]]
I want my output to be players = [["Jim", "100"], ["Brett", "32"]]
So in other words, if item[0] == 'Jim'
and it's already occurred within the array, remove all subsequent arrays with item[0] == 'Jim'
.