I’ve got an array of objects where each object has fields like title, description, family, etc. How can I perform a jQuery operation that grabs all objects in this array with a unique family name – similar to SQL’s DISTINCT clause?
I’ve got an array of objects where each object has fields like title, description,
Share
You could do:
Singles is an array with only DISTINCT objects
EDIT – i have blogged about this and given a more elaborate answer http://newcodeandroll.blogspot.it/2012/01/how-to-find-duplicates-in-array-in.html