{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/591","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/591/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/591/events","html_url":"https://github.com/facebook/immutable-js/issues/591","id":101796593,"number":591,"title":"List.of() doesn't work properly on an array of objects","user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T03:04:14Z","updated_at":"2015-08-19T03:06:10Z","closed_at":"2015-08-19T03:06:10Z","body":"$ var results = [Object, Object, Object]\r\n\r\n`Immutable.List.of(results).toArray()` will return\r\n\r\n```\r\n[Array[3]]\r\n  0: Array[3]\r\n    0: Object\r\n    1: Object\r\n    2: Object\r\n```\r\n\r\nwhy the array of objects nested in an array?"},"comment":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/comments/132429240","html_url":"https://github.com/facebook/immutable-js/issues/591#issuecomment-132429240","issue_url":"https://api.github.com/repos/facebook/immutable-js/issues/591","id":132429240,"user":{"login":"leebyron","id":50130,"avatar_url":"https://avatars.githubusercontent.com/u/50130?v=3","gravatar_id":"","url":"https://api.github.com/users/leebyron","html_url":"https://github.com/leebyron","followers_url":"https://api.github.com/users/leebyron/followers","following_url":"https://api.github.com/users/leebyron/following{/other_user}","gists_url":"https://api.github.com/users/leebyron/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyron/subscriptions","organizations_url":"https://api.github.com/users/leebyron/orgs","repos_url":"https://api.github.com/users/leebyron/repos","events_url":"https://api.github.com/users/leebyron/events{/privacy}","received_events_url":"https://api.github.com/users/leebyron/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T03:06:10Z","updated_at":"2015-08-19T03:06:10Z","body":"This is behaving correctly. `List.of()` is a convenience method for creating a List from a list of arguments:\r\n\r\n```js\r\nList.of(1, 2, 3)\r\n```\r\n\r\nIf you want to create a List from an array, just call the List constructor directly:\r\n\r\n```js\r\nList([1, 2, 3])\r\n```"}}