The 2D array provided is formatted as follows :
[[ONE,1],[QUARTER,0.25],[QUARTER,0.25]]
The desired output should be :
[[ONE,1],[QUARTER,0.5]]
An attempt was made using array.IndexOf but did not yield the expected result
ONE,1,QUARTER,0.25,QUARTER,0.25