I only recently discovered the power of underscore.js, still new to the methods I kindly ask for a suggestion:
How do I get from this:
[ [{
var arr = _.uniq(_.map(_.flatten(array), function(e) { return e.name; }));