{"action":"opened","issue":{"url":"https://api.github.com/repos/a8m/angular-filter/issues/177","labels_url":"https://api.github.com/repos/a8m/angular-filter/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/a8m/angular-filter/issues/177/comments","events_url":"https://api.github.com/repos/a8m/angular-filter/issues/177/events","html_url":"https://github.com/a8m/angular-filter/issues/177","id":123243685,"number":177,"title":"groupBy multiple key","user":{"login":"sckoh","id":6284224,"avatar_url":"https://avatars.githubusercontent.com/u/6284224?v=3","gravatar_id":"","url":"https://api.github.com/users/sckoh","html_url":"https://github.com/sckoh","followers_url":"https://api.github.com/users/sckoh/followers","following_url":"https://api.github.com/users/sckoh/following{/other_user}","gists_url":"https://api.github.com/users/sckoh/gists{/gist_id}","starred_url":"https://api.github.com/users/sckoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckoh/subscriptions","organizations_url":"https://api.github.com/users/sckoh/orgs","repos_url":"https://api.github.com/users/sckoh/repos","events_url":"https://api.github.com/users/sckoh/events{/privacy}","received_events_url":"https://api.github.com/users/sckoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-21T09:48:13Z","updated_at":"2015-12-21T09:48:13Z","closed_at":null,"body":"    it('should allow groupBy multiple key', function() {\r\n      var arrays = [\r\n        { key1: 1, key2: 1, data: {} },\r\n        { key1: 1, key2: 1, data: {} },\r\n        { key1: 1, key2: 2, data: {} },\r\n        { key1: 1, key2: 2, data: {} },\r\n        { key1: 2, key2: 3, data: {} },\r\n        { key1: 2, key2: 3, data: {} },\r\n        { key1: 2, key2: 4, data: {} },\r\n        { key1: 2, key2: 4, data: {} }\r\n      ];\r\n\r\n      expect(filter(arrays, ['key1', 'key2'])).toEqual({\r\n        '1,1': [arrays[0], arrays[1]],\r\n        '1,2': [arrays[2], arrays[3]],\r\n        '2,3': [arrays[4], arrays[5]],\r\n        '2,4': [arrays[6], arrays[7]]\r\n      });\r\n    });\r\n\r\n\r\nshould allow to group by multiple key instead of only 1 key"}}