{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/2058","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/2058/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/2058/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/2058/events","html_url":"https://github.com/lodash/lodash/issues/2058","id":136618001,"number":2058,"title":"sumBy returns bool instead of integer when the result equals 1","user":{"login":"JonWallsten","id":5993909,"avatar_url":"https://avatars.githubusercontent.com/u/5993909?v=3","gravatar_id":"","url":"https://api.github.com/users/JonWallsten","html_url":"https://github.com/JonWallsten","followers_url":"https://api.github.com/users/JonWallsten/followers","following_url":"https://api.github.com/users/JonWallsten/following{/other_user}","gists_url":"https://api.github.com/users/JonWallsten/gists{/gist_id}","starred_url":"https://api.github.com/users/JonWallsten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonWallsten/subscriptions","organizations_url":"https://api.github.com/users/JonWallsten/orgs","repos_url":"https://api.github.com/users/JonWallsten/repos","events_url":"https://api.github.com/users/JonWallsten/events{/privacy}","received_events_url":"https://api.github.com/users/JonWallsten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-26T07:22:41Z","updated_at":"2016-02-26T07:24:35Z","closed_at":"2016-02-26T07:24:35Z","body":"I've noticed that sumBy in Lodash 4 returns bool true instead of 1 if the sum is 1. If the sum is 2 or more it returns an integer as usual. Is this expected behavior?"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/189145308","html_url":"https://github.com/lodash/lodash/issues/2058#issuecomment-189145308","issue_url":"https://api.github.com/repos/lodash/lodash/issues/2058","id":189145308,"user":{"login":"jdalton","id":4303,"avatar_url":"https://avatars.githubusercontent.com/u/4303?v=3","gravatar_id":"","url":"https://api.github.com/users/jdalton","html_url":"https://github.com/jdalton","followers_url":"https://api.github.com/users/jdalton/followers","following_url":"https://api.github.com/users/jdalton/following{/other_user}","gists_url":"https://api.github.com/users/jdalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalton/subscriptions","organizations_url":"https://api.github.com/users/jdalton/orgs","repos_url":"https://api.github.com/users/jdalton/repos","events_url":"https://api.github.com/users/jdalton/events{/privacy}","received_events_url":"https://api.github.com/users/jdalton/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T07:24:35Z","updated_at":"2016-02-26T07:24:35Z","body":"```js\r\n_.sumBy([{ 'x': 1 }], 'x')\r\n// 1\r\n```"}}