{"comment":{"url":"https://api.github.com/repos/NRJones0210/village-pizza/comments/14256420","html_url":"https://github.com/NRJones0210/village-pizza/commit/903bbc54c52da70d96eaaa2c0b107a43cd696ad3#commitcomment-14256420","id":14256420,"user":{"login":"zilkey","id":2451,"avatar_url":"https://avatars.githubusercontent.com/u/2451?v=3","gravatar_id":"","url":"https://api.github.com/users/zilkey","html_url":"https://github.com/zilkey","followers_url":"https://api.github.com/users/zilkey/followers","following_url":"https://api.github.com/users/zilkey/following{/other_user}","gists_url":"https://api.github.com/users/zilkey/gists{/gist_id}","starred_url":"https://api.github.com/users/zilkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilkey/subscriptions","organizations_url":"https://api.github.com/users/zilkey/orgs","repos_url":"https://api.github.com/users/zilkey/repos","events_url":"https://api.github.com/users/zilkey/events{/privacy}","received_events_url":"https://api.github.com/users/zilkey/received_events","type":"User","site_admin":false},"position":40,"line":40,"path":"lib/orders.js","commit_id":"903bbc54c52da70d96eaaa2c0b107a43cd696ad3","created_at":"2015-11-07T05:16:12Z","updated_at":"2015-11-07T05:16:12Z","body":"Now that you have these 3 cases where indexing needs to happen, could you write a generic `index` function, and a generic `group` function that could abstract this duplication?"}}