{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1408","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1408/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1408/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1408/events","html_url":"https://github.com/lodash/lodash/issues/1408","id":103023745,"number":1408,"title":"Can I compare arrays without considering the orders or data types?","user":{"login":"kitz17","id":6874822,"avatar_url":"https://avatars.githubusercontent.com/u/6874822?v=3","gravatar_id":"","url":"https://api.github.com/users/kitz17","html_url":"https://github.com/kitz17","followers_url":"https://api.github.com/users/kitz17/followers","following_url":"https://api.github.com/users/kitz17/following{/other_user}","gists_url":"https://api.github.com/users/kitz17/gists{/gist_id}","starred_url":"https://api.github.com/users/kitz17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitz17/subscriptions","organizations_url":"https://api.github.com/users/kitz17/orgs","repos_url":"https://api.github.com/users/kitz17/repos","events_url":"https://api.github.com/users/kitz17/events{/privacy}","received_events_url":"https://api.github.com/users/kitz17/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/question","name":"question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-25T13:37:14Z","updated_at":"2015-08-25T19:51:21Z","closed_at":"2015-08-25T14:34:25Z","body":"I am trying to compare arrays of numbers\r\n```\r\nvar a = [0.5, 1];\r\nvar b = ['0.5', '1'];\r\nvar c = [1, 0.5];\r\nvar d = [0.5, 1];\r\n_.eq(a, b); // false\r\n_.eq(a, c); // false\r\n_.eq(a, d); // true\r\n_.eq(c, d); // false\r\n```\r\nI want to make `_.eq(a, b)` and `_.eq(a, c)` to be `true`"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/134718767","html_url":"https://github.com/lodash/lodash/issues/1408#issuecomment-134718767","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1408","id":134718767,"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-08-25T19:51:21Z","updated_at":"2015-08-25T19:51:21Z","body":"> uses SameValueZero and not customizable. And this will require two passes :(\r\n\r\nIt's customizable just not pretty. You can overwrite `_.indexOf` to affect equality checks of methods like `difference`, `uniq`, `intersection`, etc."}}