{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/2693","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/2693/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/2693/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/2693/events","html_url":"https://github.com/lodash/lodash/issues/2693","id":180277230,"number":2693,"title":"fp/transform with objects","user":{"login":"mpneuried","id":300631,"avatar_url":"https://avatars.githubusercontent.com/u/300631?v=3","gravatar_id":"","url":"https://api.github.com/users/mpneuried","html_url":"https://github.com/mpneuried","followers_url":"https://api.github.com/users/mpneuried/followers","following_url":"https://api.github.com/users/mpneuried/following{/other_user}","gists_url":"https://api.github.com/users/mpneuried/gists{/gist_id}","starred_url":"https://api.github.com/users/mpneuried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpneuried/subscriptions","organizations_url":"https://api.github.com/users/mpneuried/orgs","repos_url":"https://api.github.com/users/mpneuried/repos","events_url":"https://api.github.com/users/mpneuried/events{/privacy}","received_events_url":"https://api.github.com/users/mpneuried/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T11:01:20Z","updated_at":"2016-09-30T11:12:19Z","closed_at":null,"body":"if i use the functional transform method with an object the thrid key argument is missing.\r\n\r\nHere a running example: https://runkit.com/mpneuried/57ee4372751b541400b39472\r\n\r\n```js\r\nlet transform = require(\"lodash/transform\")\r\nlet transformFp = require(\"lodash/fp/transform\")\r\n\r\n// a collection to convert\r\nvar coll = {\r\n    foo: { val: 13 }, \r\n    bar: { val: 42 }, \r\n    buzz: { val: 23 }\r\n}\r\n\r\n// transform with regular method\r\ntransform( coll, function ( acc, val, key ){\r\n    val.key = key\r\n    acc.push( val )\r\n}, [] )\r\n\r\n// transform with fp version\r\ntransformFp( function ( acc, val, key ){\r\n    val.key = key\r\n\r\n    // ####################\r\n    // #  key is undefined !!\r\n    // ####################\r\n\r\n    acc.push( val )\r\n}, [] )( coll )"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/250719367","html_url":"https://github.com/lodash/lodash/issues/2693#issuecomment-250719367","issue_url":"https://api.github.com/repos/lodash/lodash/issues/2693","id":250719367,"user":{"login":"Archimidis","id":490535,"avatar_url":"https://avatars.githubusercontent.com/u/490535?v=3","gravatar_id":"","url":"https://api.github.com/users/Archimidis","html_url":"https://github.com/Archimidis","followers_url":"https://api.github.com/users/Archimidis/followers","following_url":"https://api.github.com/users/Archimidis/following{/other_user}","gists_url":"https://api.github.com/users/Archimidis/gists{/gist_id}","starred_url":"https://api.github.com/users/Archimidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archimidis/subscriptions","organizations_url":"https://api.github.com/users/Archimidis/orgs","repos_url":"https://api.github.com/users/Archimidis/repos","events_url":"https://api.github.com/users/Archimidis/events{/privacy}","received_events_url":"https://api.github.com/users/Archimidis/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T11:12:19Z","updated_at":"2016-09-30T11:12:19Z","body":"The answer lies [in the docs](https://github.com/lodash/lodash/wiki/FP-Guide#capped-iteratee-arguments)"}}
{"actor":{"display_login":"Archimidis"}}