{"action":"opened","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/3784","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/3784/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/3784/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/3784/events","html_url":"https://github.com/lodash/lodash/issues/3784","id":321707323,"number":3784,"title":"getOwn function?","user":{"login":"gakada","id":13043588,"avatar_url":"https://avatars2.githubusercontent.com/u/13043588?v=4","gravatar_id":"","url":"https://api.github.com/users/gakada","html_url":"https://github.com/gakada","followers_url":"https://api.github.com/users/gakada/followers","following_url":"https://api.github.com/users/gakada/following{/other_user}","gists_url":"https://api.github.com/users/gakada/gists{/gist_id}","starred_url":"https://api.github.com/users/gakada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gakada/subscriptions","organizations_url":"https://api.github.com/users/gakada/orgs","repos_url":"https://api.github.com/users/gakada/repos","events_url":"https://api.github.com/users/gakada/events{/privacy}","received_events_url":"https://api.github.com/users/gakada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T20:04:15Z","updated_at":"2018-05-09T20:04:15Z","closed_at":null,"author_association":"NONE","body":"Is there a function like `get` but only for own properties?\r\n\r\nCurrently\r\n```js\r\n> _.get({a: 1}, 'a')\r\n1\r\n> _.get({a: 1}, 'b')\r\nundefined\r\n> _.get({a: 1}, 'toString')\r\n[Function: toString]\r\n> _.has({a: 1}, 'a')\r\ntrue\r\n> _.has({a: 1}, 'b')\r\nfalse\r\n> _.has({a: 1}, 'toString')\r\nfalse\r\n```\r\nso something like\r\n```js\r\n_.has(xs, x) ? _.get(xs, x) : undefined\r\n```\r\nhas to be used."}}
{"actor":{"display_login":"gakada"}}