{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2881","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2881/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2881/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2881/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2881","id":70266265,"number":2881,"title":"Update es6.d.ts for final draft of ES6 specification","user":{"login":"rbuckton","id":3902892,"avatar_url":"https://avatars.githubusercontent.com/u/3902892?v=3","gravatar_id":"","url":"https://api.github.com/users/rbuckton","html_url":"https://github.com/rbuckton","followers_url":"https://api.github.com/users/rbuckton/followers","following_url":"https://api.github.com/users/rbuckton/following{/other_user}","gists_url":"https://api.github.com/users/rbuckton/gists{/gist_id}","starred_url":"https://api.github.com/users/rbuckton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbuckton/subscriptions","organizations_url":"https://api.github.com/users/rbuckton/orgs","repos_url":"https://api.github.com/users/rbuckton/repos","events_url":"https://api.github.com/users/rbuckton/events{/privacy}","received_events_url":"https://api.github.com/users/rbuckton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/ES6","name":"ES6","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/lib.d.ts","name":"lib.d.ts","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/8","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.6","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/8/labels","id":900034,"number":8,"title":"TypeScript 1.6","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":227,"state":"open","created_at":"2014-12-11T05:46:12Z","updated_at":"2015-08-18T20:39:08Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-23T00:05:52Z","updated_at":"2015-08-18T22:28:45Z","closed_at":null,"body":"- [x] [6.1.5.1](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-well-known-symbols) - Add built in symbols to `SymbolConstructor`: `match`, `replace`, `search`, `species`, `split` (from #2524). \r\n- [ ] [19.2.3](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-function-prototype-object) - Remove `Function.toMethod`.\r\n- [ ] [19.2.3.6](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-function.prototype-@@hasinstance) - Add `[Symbol.hasInstance]` method to `Function` interface.\r\n- [ ] [20.3.4.45](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-date.prototype-@@toprimitive) - Add `[Symbol.toPrimitive]` method to `Date` interface.\r\n- [x] [21.1.3.7](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.includes) - Add `includes` method to `String` interface, and remove `contains`\r\n- [ ] [21.1.3.11](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.match) - Add overload for `match` method on `String` interface that accepts an object with a compatible `[Symbol.match]` method.\r\n- [ ] [21.1.3.14](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.replace) - Add overload for `replace` method on `String` interface that accepts an object with a compatible `[Symbol.replace]` method.\r\n- [ ] [21.1.3.15](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.search) - Add overload for `search` method on `String` interface that accepts an object with a compatible `[Symbol.search]` method.\r\n- [ ] [21.1.3.17](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.split) - Add overload for `split` method on `String` interface that accepts an object with a compatible `[Symbol.split]` method.\r\n- [ ] [21.2.4.2](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-regexp-@@species) - Add `[Symbol.species]` property to `RegExpConstructor` interface.\r\n- [ ] [21.2.5.6](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype-@@match) - Add `[Symbol.match]` method to `RegExp` interface.\r\n- [ ] [21.2.5.8](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype-@@replace) - Add `[Symbol.replace]` method to `RegExp` interface.\r\n- [ ] [21.2.5.9](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype-@@search) - Add `[Symbol.search]` method to `RegExp` interface.\r\n- [ ] [21.2.5.11](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype-@@split) - Add `[Symbol.split]` method to `RegExp` interface.\r\n- [ ] [22.1.2.5](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-array-@@species) - Add `[Symbol.species]` property to `ArrayConstructor` interface.\r\n- [ ] [22.1.3.31](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype-@@unscopables) - Add `[Symbol.unscopables]` property to `Array` interface.\r\n- [ ] [22.2.1.4](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-%typedarray%-object), [22.2.2.1.1](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-typedarrayfrom) - Add construct signature overload on Typed Array constructor interfaces to allow `Iterable<number>`.\r\n- [ ] [22.2.2.4](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-%typedarray%-@@species) - Add `[Symbol.species]` property to Typed Array constructor interfaces.\r\n- [ ] [22.2.3.31](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-%typedarray%.prototype-@@tostringtag) - Add `[Symbol.toStringTag]` property to Typed Array interfaces.\r\n- [ ] [23.1.2.2](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-map-@@species) - Add `[Symbol.species]` property to `MapConstructor` interface.\r\n- [ ] [23.2.2.2](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-set-@@species) - Add `[Symbol.species]` property to `SetConstructor` interface.\r\n- [ ] [24.1.3.3](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-arraybuffer-@@species) - Add `[Symbol.species]` property to `ArrayBufferConstructor` interface.\r\n- [ ] [25.2.3.3](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorfunction.prototype-@@tostringtag) - Add `[Symbol.toStringTag]` property to `GeneratorFunction` interface.\r\n- [ ] [25.4.4.1](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise.all) - `Promise.all` can take an iterable.\r\n- [ ] [25.4.4.3](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise.race) - `Promise.race` can take an iterable.\r\n- [ ] [25.4.4.6](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-promise-@@species) - Add `[Symbol.species]` property to `PromiseConstructor` interface.\r\n- [ ] [25.4.5.4](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise.prototype-@@tostringtag) - Add `[Symbol.toStringTag]` property to `Promise` interface.\r\n- [ ] [26.1.2](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-reflect.construct) - Update `Reflect.construct` to add third `newTarget` argument.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/132375327","html_url":"https://github.com/Microsoft/TypeScript/issues/2881#issuecomment-132375327","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2881","id":132375327,"user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T22:28:45Z","updated_at":"2015-08-18T22:28:45Z","body":"@rbuckton it looks like `Promise.all` and `Promise.race` already take an iterable.\r\n\r\n```TypeScript\r\ninterface PromiseConstructor {\r\n    // ...\r\n\r\n    /**\r\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises \r\n     * resolve, or rejected when any Promise is rejected.\r\n     * @param values An array of Promises.\r\n     * @returns A new Promise.\r\n     */\r\n    all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;\r\n\r\n    /**\r\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved \r\n     * or rejected.\r\n     * @param values An array of Promises.\r\n     * @returns A new Promise.\r\n     */\r\n    race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;\r\n\r\n    // ...\r\n}\r\n```"}}