Js Get Distinct Values From Array Of Objects In Java