{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1121","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1121/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1121/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1121/events","html_url":"https://github.com/ramda/ramda/issues/1121","id":81576599,"number":1121,"title":"R.pick doesn't support numeric object keys.","user":{"login":"josephong","id":1149900,"avatar_url":"https://avatars.githubusercontent.com/u/1149900?v=3","gravatar_id":"","url":"https://api.github.com/users/josephong","html_url":"https://github.com/josephong","followers_url":"https://api.github.com/users/josephong/followers","following_url":"https://api.github.com/users/josephong/following{/other_user}","gists_url":"https://api.github.com/users/josephong/gists{/gist_id}","starred_url":"https://api.github.com/users/josephong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephong/subscriptions","organizations_url":"https://api.github.com/users/josephong/orgs","repos_url":"https://api.github.com/users/josephong/repos","events_url":"https://api.github.com/users/josephong/events{/privacy}","received_events_url":"https://api.github.com/users/josephong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T18:53:34Z","updated_at":"2015-05-27T19:09:18Z","closed_at":null,"body":"Assume we create an entry in an object as follows:\r\n\r\n```javascript\r\n  var obj = {};\r\n  obj[1] = 'foo';\r\n  console.log(obj[1]);\r\n  console.log(obj['1']);\r\n```\r\n\r\nLogs 'foo' twice.\r\n\r\nHowever,\r\n\r\n```javascript\r\n  var obj = {};\r\n  obj[1] = 'foo';\r\n  console.log(R.pick([1], obj));\r\n  console.log(R.pick(['1'], obj));\r\n```\r\n\r\nLogs {}, and then {1: hello}.\r\n"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/106038459","html_url":"https://github.com/ramda/ramda/issues/1121#issuecomment-106038459","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1121","id":106038459,"user":{"login":"buzzdecafe","id":716260,"avatar_url":"https://avatars.githubusercontent.com/u/716260?v=3","gravatar_id":"","url":"https://api.github.com/users/buzzdecafe","html_url":"https://github.com/buzzdecafe","followers_url":"https://api.github.com/users/buzzdecafe/followers","following_url":"https://api.github.com/users/buzzdecafe/following{/other_user}","gists_url":"https://api.github.com/users/buzzdecafe/gists{/gist_id}","starred_url":"https://api.github.com/users/buzzdecafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzzdecafe/subscriptions","organizations_url":"https://api.github.com/users/buzzdecafe/orgs","repos_url":"https://api.github.com/users/buzzdecafe/repos","events_url":"https://api.github.com/users/buzzdecafe/events{/privacy}","received_events_url":"https://api.github.com/users/buzzdecafe/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T19:09:18Z","updated_at":"2015-05-27T19:09:18Z","body":"certainly `pick` and `pickAll` should have the same semantics w/r/t selecting properties. At present `pick`:\r\n\r\n```js\r\nfunction pick(names, obj) {\r\n  var result = {};\r\n  for (var prop in obj) {\r\n    if (_indexOf(names, prop) >= 0) {\r\n      result[prop] = obj[prop];\r\n    }\r\n  }\r\n  return result;\r\n})\r\n```\r\n\r\nand `pickAll`:\r\n\r\n```js\r\nfunction pickAll(names, obj) {\r\n  var result = {};\r\n  var idx = -1;\r\n  var len = names.length;\r\n  while (++idx < len) {\r\n    var name = names[idx];\r\n    result[name] = obj[name];\r\n  }\r\n  return result;\r\n}\r\n```\r\n\r\nit should be pretty trivial to unify them by iterating in the same way."}}