{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1781","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1781/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1781/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1781/events","html_url":"https://github.com/lodash/lodash/issues/1781","id":126524026,"number":1781,"title":"_.reduce()(obj) from lodash/fp does not send in Key","user":{"login":"FuzzOli87","id":12246915,"avatar_url":"https://avatars.githubusercontent.com/u/12246915?v=3","gravatar_id":"","url":"https://api.github.com/users/FuzzOli87","html_url":"https://github.com/FuzzOli87","followers_url":"https://api.github.com/users/FuzzOli87/followers","following_url":"https://api.github.com/users/FuzzOli87/following{/other_user}","gists_url":"https://api.github.com/users/FuzzOli87/gists{/gist_id}","starred_url":"https://api.github.com/users/FuzzOli87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FuzzOli87/subscriptions","organizations_url":"https://api.github.com/users/FuzzOli87/orgs","repos_url":"https://api.github.com/users/FuzzOli87/repos","events_url":"https://api.github.com/users/FuzzOli87/events{/privacy}","received_events_url":"https://api.github.com/users/FuzzOli87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-13T21:49:33Z","updated_at":"2016-01-14T04:43:40Z","closed_at":"2016-01-13T22:46:21Z","body":"```javascript\r\nimport { reduce } from 'lodash/fp';\r\nimport { reduce as normReduce } from 'lodash';\r\n\r\nconst testObj = { hello: 12, hi: 21 };\r\n\r\nconst red = reduce((arr, n, key) => {\r\n  arr.push({ [n]: key });\r\n  return arr;\r\n}, []);\r\n\r\nconst redNorm = normReduce(testObj, (arr, n, key) => {\r\n  arr.push({ [n]: key });\r\n  return arr;\r\n}, []);\r\n\r\nconst resultFP = red(testObj);\r\n\r\nconsole.log(resultFP); // => [ { '12': undefined }, { '21': undefined } ]\r\nconsole.log(redNorm); // => [ { '12': 'hello' }, { '21': 'hi' } ]\r\n\r\n```\r\n\r\nThe FP version of reduce, as you can see, does not return the key correctly. Judging from the release notes, it should work like I imported it, right?"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/171528350","html_url":"https://github.com/lodash/lodash/issues/1781#issuecomment-171528350","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1781","id":171528350,"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-01-14T04:43:40Z","updated_at":"2016-01-14T04:43:40Z","body":"Btw if you want a better guage on the popularity of various FP methods. I [performed a crawl](https://gist.github.com/jdalton/9423cb06f08f7992f3e8) a few months back. I'm pretty happy with Lodash's coverage esp of the top used functions."}}