Created
June 27, 2014 11:46
-
-
Save ksloan/e77034e2bbc4f84b6776 to your computer and use it in GitHub Desktop.
remove duplicate objects (get unique objects) in javascript array of objects [using underscore.js]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.uniq(personArray, function(person) { return person.age; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment