{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1320","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1320/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1320/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1320/events","html_url":"https://github.com/lodash/lodash/issues/1320","id":93345454,"number":1320,"title":"_.includes handles empty arrays as target oddly ","user":{"login":"thody","id":30611,"avatar_url":"https://avatars.githubusercontent.com/u/30611?v=3","gravatar_id":"","url":"https://api.github.com/users/thody","html_url":"https://github.com/thody","followers_url":"https://api.github.com/users/thody/followers","following_url":"https://api.github.com/users/thody/following{/other_user}","gists_url":"https://api.github.com/users/thody/gists{/gist_id}","starred_url":"https://api.github.com/users/thody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thody/subscriptions","organizations_url":"https://api.github.com/users/thody/orgs","repos_url":"https://api.github.com/users/thody/repos","events_url":"https://api.github.com/users/thody/events{/privacy}","received_events_url":"https://api.github.com/users/thody/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-06T18:35:00Z","updated_at":"2015-07-06T18:56:35Z","closed_at":"2015-07-06T18:56:35Z","body":"```\r\n_.includes(\"foo\", []);\r\n// -> true\r\n```\r\nThis feels pretty counterintuitive, I would expect a String to _NOT_ include an empty Array. I got here by accidentally swapping args, but it took a little while to track down my error because of the seemingly odd result here.\r\n\r\nFWIW, this appears to be handled as I would expect:\r\n\r\n```\r\n_.includes(\"foo\", [\"bar\"]);\r\n// -> false\r\n```"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/118958208","html_url":"https://github.com/lodash/lodash/issues/1320#issuecomment-118958208","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1320","id":118958208,"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":"2015-07-06T18:56:35Z","updated_at":"2015-07-06T18:56:35Z","body":"Coercion is fun\r\n\r\n```js\r\n\"foo\".indexOf([]); // => 0\r\n```"}}