{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/498","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/498/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/498/events","html_url":"https://github.com/facebook/immutable-js/issues/498","id":86997637,"number":498,"title":"Value equality checking using 'is'","user":{"login":"jdmunro","id":17656,"avatar_url":"https://avatars.githubusercontent.com/u/17656?v=3","gravatar_id":"","url":"https://api.github.com/users/jdmunro","html_url":"https://github.com/jdmunro","followers_url":"https://api.github.com/users/jdmunro/followers","following_url":"https://api.github.com/users/jdmunro/following{/other_user}","gists_url":"https://api.github.com/users/jdmunro/gists{/gist_id}","starred_url":"https://api.github.com/users/jdmunro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdmunro/subscriptions","organizations_url":"https://api.github.com/users/jdmunro/orgs","repos_url":"https://api.github.com/users/jdmunro/repos","events_url":"https://api.github.com/users/jdmunro/events{/privacy}","received_events_url":"https://api.github.com/users/jdmunro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T14:56:13Z","updated_at":"2015-06-10T14:56:13Z","closed_at":null,"body":"Could someone help me understand why the following assertions work:\r\n\r\n    var name = \"Tim Cook\";\r\n\r\n    var list1 = Immutable.fromJS([{name: \"Name: Tim Cook\"}]);\r\n    var list2 = Immutable.fromJS([{name: \"Name: \" + name}]);\r\n\r\n    var map1 = Immutable.fromJS({name: \"Name: Tim Cook\"});\r\n    var map2 = Immutable.fromJS({name: \"Name: \" + name});\r\n\r\n    expect(Immutable.is(list1, list2)).toBe(true);\r\n    expect(Immutable.is(map1, map2)).toBe(true);\r\n\r\nBut in the following example, the list assertion fails because it returns false. For the maps comparison it returns true as expected though.\r\n\r\n    var name = \"Tim Cook\";\r\n\r\n    var list1 = Immutable.List([{name: \"Name: Tim Cook\"}]);\r\n    var list2 = Immutable.List([{name: \"Name: \" + name}]);\r\n\r\n    var map1 = Immutable.Map({name: \"Name: Tim Cook\"});\r\n    var map2 = Immutable.Map({name: \"Name: \" + name});\r\n\r\n    expect(Immutable.is(list1, list2)).toBe(true);\r\n    expect(Immutable.is(map1, map2)).toBe(true);\r\n\r\nAm I using the API incorrectly?"}}