{"action":"created","issue":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/883","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/883/comments","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/883/events","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/883","id":103950264,"number":883,"title":"CombineLatest with array parameter: selector does not have an array as parameter","user":{"login":"timotei","id":428492,"avatar_url":"https://avatars.githubusercontent.com/u/428492?v=3","gravatar_id":"","url":"https://api.github.com/users/timotei","html_url":"https://github.com/timotei","followers_url":"https://api.github.com/users/timotei/followers","following_url":"https://api.github.com/users/timotei/following{/other_user}","gists_url":"https://api.github.com/users/timotei/gists{/gist_id}","starred_url":"https://api.github.com/users/timotei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotei/subscriptions","organizations_url":"https://api.github.com/users/timotei/orgs","repos_url":"https://api.github.com/users/timotei/repos","events_url":"https://api.github.com/users/timotei/events{/privacy}","received_events_url":"https://api.github.com/users/timotei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-30T21:11:54Z","updated_at":"2015-08-31T05:30:40Z","closed_at":null,"body":"I've stumbled upon the following problem: if I call `combineLatest` with an array of observables, I don't get back an array of the values of those observables, but the array expanded.\r\n\r\n```\r\nvar obs1 = Rx.Observable.just(1);\r\nvar obs2 = Rx.Observable.just(2);\r\n\r\nRx.Observable.combineLatest([obs1, obs2], elements => {\r\n  console.log(typeof elements);\r\n  console.log(elements.length);\r\n}).subscribe(_ => {});\r\n```\r\n\r\nThat snippet above, as executed in http://jsbin.com/yevaxaxupu/edit?js,console it can be seen that instead of the type to be array & the length  = 2, it's actually just the first value of the observable (1).\r\n\r\nIs that even the right way to work? The use case I have is that I don't know how many items I have in the array and I don't even care, cause I will just do a reduce operation (e.g.: sum over everything). "},"comment":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments/136266250","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/883#issuecomment-136266250","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/883","id":136266250,"user":{"login":"roganov","id":1858503,"avatar_url":"https://avatars.githubusercontent.com/u/1858503?v=3","gravatar_id":"","url":"https://api.github.com/users/roganov","html_url":"https://github.com/roganov","followers_url":"https://api.github.com/users/roganov/followers","following_url":"https://api.github.com/users/roganov/following{/other_user}","gists_url":"https://api.github.com/users/roganov/gists{/gist_id}","starred_url":"https://api.github.com/users/roganov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roganov/subscriptions","organizations_url":"https://api.github.com/users/roganov/orgs","repos_url":"https://api.github.com/users/roganov/repos","events_url":"https://api.github.com/users/roganov/events{/privacy}","received_events_url":"https://api.github.com/users/roganov/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T05:30:40Z","updated_at":"2015-08-31T05:30:40Z","body":"@timotei Can't you just use `arguments`?\r\n```\r\nitem1, item2, ..., itemn] -> function() {console.log(arguments)}\r\n```\r\nOr in ES6:\r\n```\r\nitem1, item2, ..., itemn] -> function(...args) {console.log(args)}\r\n```"}}