{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/2479","repository_url":"https://api.github.com/repos/ramda/ramda","labels_url":"https://api.github.com/repos/ramda/ramda/issues/2479/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/2479/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/2479/events","html_url":"https://github.com/ramda/ramda/issues/2479","id":299754090,"number":2479,"title":"a function for make a new object with sub set of items of another object - See the case","user":{"login":"LucasBadico","id":16516889,"avatar_url":"https://avatars3.githubusercontent.com/u/16516889?v=4","gravatar_id":"","url":"https://api.github.com/users/LucasBadico","html_url":"https://github.com/LucasBadico","followers_url":"https://api.github.com/users/LucasBadico/followers","following_url":"https://api.github.com/users/LucasBadico/following{/other_user}","gists_url":"https://api.github.com/users/LucasBadico/gists{/gist_id}","starred_url":"https://api.github.com/users/LucasBadico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucasBadico/subscriptions","organizations_url":"https://api.github.com/users/LucasBadico/orgs","repos_url":"https://api.github.com/users/LucasBadico/repos","events_url":"https://api.github.com/users/LucasBadico/events{/privacy}","received_events_url":"https://api.github.com/users/LucasBadico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-23T15:44:13Z","updated_at":"2018-02-23T17:49:29Z","closed_at":null,"author_association":"NONE","body":"```javascript\r\n// the function\r\nconst getArgs = args => keys => R.reduce((obj, field) => ({ ...obj, [field]: args[field] }), {})(fields)\r\n\r\n// I have a random set of keys as\r\nconst keys = ['foo', 'bar', 'baz']\r\n\r\n// a bigger object\r\nconst bigger = {\r\n  ...\r\n  foo: 1,\r\n  bar: 1,\r\n  baz: 1,\r\n   ...\r\n}\r\n\r\n// so for my new object\r\ngetArgs(bigger)(keys)\r\n=> {\r\n foo: 1,\r\n  bar: 1,\r\n  baz: 1,\r\n}\r\n\r\n// or\r\ngetArgs(bigger)(['baz'])\r\n=> { baz: 1 }\r\n```"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/368086136","html_url":"https://github.com/ramda/ramda/issues/2479#issuecomment-368086136","issue_url":"https://api.github.com/repos/ramda/ramda/issues/2479","id":368086136,"user":{"login":"CrossEye","id":151263,"avatar_url":"https://avatars0.githubusercontent.com/u/151263?v=4","gravatar_id":"","url":"https://api.github.com/users/CrossEye","html_url":"https://github.com/CrossEye","followers_url":"https://api.github.com/users/CrossEye/followers","following_url":"https://api.github.com/users/CrossEye/following{/other_user}","gists_url":"https://api.github.com/users/CrossEye/gists{/gist_id}","starred_url":"https://api.github.com/users/CrossEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrossEye/subscriptions","organizations_url":"https://api.github.com/users/CrossEye/orgs","repos_url":"https://api.github.com/users/CrossEye/repos","events_url":"https://api.github.com/users/CrossEye/events{/privacy}","received_events_url":"https://api.github.com/users/CrossEye/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T17:49:29Z","updated_at":"2018-02-23T17:49:29Z","author_association":"OWNER","body":"Also note that there is usually faster response on the [Gitter chat room][gr].  It's not really a problem to ask questions here, but the chat room will likely give quicker response.  There are many of helpful people there.\r\n\r\n  [gr]: https://gitter.im/ramda/ramda"}}
{"actor":{"display_login":"CrossEye"}}