var results = orgs.reduce(function(results, org) { (results[org.id] = results[org.id] || []).push(org); return results; }, {})