This specific content was written 11 years ago.
Please keep this in mind as it may be outdated and not adhering to best-practices.

Below an example to show how to remove duplicate objects from an array using underscore in Coffeescript.
My answer is based on the following stackoverflow q/a: http://stackoverflow.com/a/9923961/1688441
array= _.uniq(_.collect(initialArray, (x) -> JSON.stringify x )).map((v) -> JSON.parse(v))
Sep 14 2015
Removing duplicate objects using Underscore for Javascript in Coffeescript
Below an example to show how to remove duplicate objects from an array using underscore in Coffeescript.
My answer is based on the following stackoverflow q/a: http://stackoverflow.com/a/9923961/1688441
By Menelaos Bakopoulos • Coffeescript, Javascript, Programming 0 • Tags: coffeescript, underscore