René's URL Explorer Experiment


Title: Support spreading and destructuring of iterators in ES6 by JsonFreeman · Pull Request #2498 · microsoft/TypeScript · GitHub

Open Graph Title: Support spreading and destructuring of iterators in ES6 by JsonFreeman · Pull Request #2498 · microsoft/TypeScript

X Title: Support spreading and destructuring of iterators in ES6 by JsonFreeman · Pull Request #2498 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Support spreading and destructuring of iterators in ES6 by JsonFreeman · Pull Request #2498 · microsoft/TypeScript

Open Graph Description: This adds support for a few things: Spreading an iterator into an array var array = [0, 1, ...new NumberIterator]; Spreading an iterator into a call function foo(...nums: number[]) { } foo(...n...

X Description: This adds support for a few things: Spreading an iterator into an array var array = [0, 1, ...new NumberIterator]; Spreading an iterator into a call function foo(...nums: number[]) { } foo(...n...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/2498

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:2f265584-7769-b2a2-0679-c5da5e0f9d93
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCC0:15BE1E:102CE:16530:6AFBF659
html-safe-nonce99b0f4dbc2ca4cced5e71ca8f7590f30fb4f31e6703b7946b75f4679c6282d08
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0MwOjE1QkUxRToxMDJDRToxNjUzMDo2QUZCRjY1OSIsInZpc2l0b3JfaWQiOiI2MDk1NTcyMjExMzk1NzIwNzkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac198012f515b2fd30e9e0fb4eb3a749d761f7bd42c0dde6275def0300ba31c399
hovercard-subject-tagpull_request:31981663
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/2498/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e278bf7e69e0356ad20e0256a9b1ea15e8e89218fe89026442e88993ec7966a2/microsoft/TypeScript/pull/2498
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e278bf7e69e0356ad20e0256a9b1ea15e8e89218fe89026442e88993ec7966a2/microsoft/TypeScript/pull/2498
og:image:altThis adds support for a few things: Spreading an iterator into an array var array = [0, 1, ...new NumberIterator]; Spreading an iterator into a call function foo(...nums: number[]) { } foo(...n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJsonFreeman
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/2498#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F2498
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F2498
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/2498
Reloadhttps://github.com/microsoft/TypeScript/pull/2498
Reloadhttps://github.com/microsoft/TypeScript/pull/2498
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests335 (335)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/pulse
https://github.com/microsoft/TypeScript
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
masterhttps://github.com/microsoft/TypeScript/tree/master
iteratorSpreadDestructurehttps://github.com/microsoft/TypeScript/tree/iteratorSpreadDestructure
Conversationhttps://github.com/microsoft/TypeScript/pull/2498
Commits20 (20)https://github.com/microsoft/TypeScript/pull/2498/commits
Checkshttps://github.com/microsoft/TypeScript/pull/2498/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/2498/files
Support spreading and destructuring of iterators in ES6https://github.com/microsoft/TypeScript/pull/2498#top
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
masterhttps://github.com/microsoft/TypeScript/tree/master
iteratorSpreadDestructurehttps://github.com/microsoft/TypeScript/tree/iteratorSpreadDestructure
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
Mar 26, 2015https://github.com/microsoft/TypeScript/pull/2498#issue-64410150
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
March 25, 2015 18:03https://github.com/microsoft/TypeScript/pull/2498#commits-pushed-abe4076
https://github.com/JsonFreeman
Change error message to be more generalhttps://github.com/microsoft/TypeScript/pull/2498/commits/abe4076417a9232377498a6e113b70ac7c9d2105
abe4076https://github.com/microsoft/TypeScript/pull/2498/commits/abe4076417a9232377498a6e113b70ac7c9d2105
https://github.com/JsonFreeman
Add spread to typeWriterhttps://github.com/microsoft/TypeScript/pull/2498/commits/3497e27d561214174b9b686b36dae71b44cabad9
3497e27https://github.com/microsoft/TypeScript/pull/2498/commits/3497e27d561214174b9b686b36dae71b44cabad9
https://github.com/JsonFreeman
Refactor checkSpreadElementExpression to get the element type internallyhttps://github.com/microsoft/TypeScript/pull/2498/commits/b7f2990305d72c2084ad3b6ee67f3b9da878e636
https://github.com/microsoft/TypeScript/commit/b7f2990305d72c2084ad3b6ee67f3b9da878e636#comments
b7f2990https://github.com/microsoft/TypeScript/pull/2498/commits/b7f2990305d72c2084ad3b6ee67f3b9da878e636
https://github.com/JsonFreeman
Support iterators in spread elementhttps://github.com/microsoft/TypeScript/pull/2498/commits/2288946afc0dded99f92ef19bf5e3c5deaea1f51
2288946https://github.com/microsoft/TypeScript/pull/2498/commits/2288946afc0dded99f92ef19bf5e3c5deaea1f51
https://github.com/JsonFreeman
Add tests for iterator spread in an array literalhttps://github.com/microsoft/TypeScript/pull/2498/commits/376574d1be89195a34c5b04ce33ecc41282919f2
376574dhttps://github.com/microsoft/TypeScript/pull/2498/commits/376574d1be89195a34c5b04ce33ecc41282919f2
https://github.com/JsonFreeman
Add tests for iterator spread in callhttps://github.com/microsoft/TypeScript/pull/2498/commits/4a0af76064ae039efd99b47133eb35a21c1cc43f
https://github.com/microsoft/TypeScript/commit/4a0af76064ae039efd99b47133eb35a21c1cc43f#comments
4a0af76https://github.com/microsoft/TypeScript/pull/2498/commits/4a0af76064ae039efd99b47133eb35a21c1cc43f
https://github.com/JsonFreeman
Add createIterableTypehttps://github.com/microsoft/TypeScript/pull/2498/commits/8c2cd2610317dcc0f22f3f57c60c959a2cb53e41
8c2cd26https://github.com/microsoft/TypeScript/pull/2498/commits/8c2cd2610317dcc0f22f3f57c60c959a2cb53e41
https://github.com/JsonFreeman
getTypeFromArrayBindingPattern returns an iterable in ES6https://github.com/microsoft/TypeScript/pull/2498/commits/42ed6aab89ff1bd739f11ba6f0ab1bbfb57e38fe
https://github.com/microsoft/TypeScript/commit/42ed6aab89ff1bd739f11ba6f0ab1bbfb57e38fe#comments
42ed6aahttps://github.com/microsoft/TypeScript/pull/2498/commits/42ed6aab89ff1bd739f11ba6f0ab1bbfb57e38fe
https://github.com/JsonFreeman
Refactor iterable or array checks into checkIteratedTypeOrElementTypehttps://github.com/microsoft/TypeScript/pull/2498/commits/806c9ce25b1a78ac442b5f6de169b4b02f7a15b2
806c9cehttps://github.com/microsoft/TypeScript/pull/2498/commits/806c9ce25b1a78ac442b5f6de169b4b02f7a15b2
https://github.com/JsonFreeman
Type of an array binding element is the iterated type of its parent i…https://github.com/microsoft/TypeScript/pull/2498/commits/06d6717859cb065492bfd65552f939ac9f3ed6e7
https://github.com/microsoft/TypeScript/commit/06d6717859cb065492bfd65552f939ac9f3ed6e7#comments
06d6717https://github.com/microsoft/TypeScript/pull/2498/commits/06d6717859cb065492bfd65552f939ac9f3ed6e7
https://github.com/JsonFreeman
Use iterated type in checkArrayLiteralAssignmenthttps://github.com/microsoft/TypeScript/pull/2498/commits/17d201f92225370bf1a4521c1728bed1beb3f98a
17d201fhttps://github.com/microsoft/TypeScript/pull/2498/commits/17d201f92225370bf1a4521c1728bed1beb3f98a
https://github.com/JsonFreeman
Wrap elementType in createArrayType for rest element in checkArrayLit…https://github.com/microsoft/TypeScript/pull/2498/commits/6b2d5ceb7c40533cdb82617d38e78c9d0cd866a9
6b2d5cehttps://github.com/microsoft/TypeScript/pull/2498/commits/6b2d5ceb7c40533cdb82617d38e78c9d0cd866a9
https://github.com/JsonFreeman
Adjust getTypeFromArrayBindingPattern to return an array if inside a …https://github.com/microsoft/TypeScript/pull/2498/commits/a477b63420407985b2df252604946d600cbdc4c3
https://github.com/microsoft/TypeScript/commit/a477b63420407985b2df252604946d600cbdc4c3#comments
a477b63https://github.com/microsoft/TypeScript/pull/2498/commits/a477b63420407985b2df252604946d600cbdc4c3
https://github.com/JsonFreeman
Add tests for array destructuring of iterableshttps://github.com/microsoft/TypeScript/pull/2498/commits/e1f2fbff63cb6835dd557e4aa20b092145ce005c
e1f2fbfhttps://github.com/microsoft/TypeScript/pull/2498/commits/e1f2fbff63cb6835dd557e4aa20b092145ce005c
https://github.com/msftclas
Microsoft Contribution License Agreements (msftclas)https://github.com/msftclas
cla-not-required https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required
Mar 26, 2015https://github.com/microsoft/TypeScript/pull/2498#event-265355107
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
Mar 26, 2015 https://github.com/microsoft/TypeScript/pull/2498#ref-issue-56315255
Iterators (ES6) #1900 https://github.com/microsoft/TypeScript/issues/1900
https://github.com/JsonFreeman
Optimize direct Iterable reference in getIteratedTypehttps://github.com/microsoft/TypeScript/pull/2498/commits/197a42a692d818d683451820c8896c25320034b1
197a42ahttps://github.com/microsoft/TypeScript/pull/2498/commits/197a42a692d818d683451820c8896c25320034b1
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
cla-not-required https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required
Mar 26, 2015https://github.com/microsoft/TypeScript/pull/2498#event-265372640
CyrusNajmabadihttps://github.com/CyrusNajmabadi
Mar 26, 2015 https://github.com/microsoft/TypeScript/pull/2498#discussion-diff-27182983
View reviewed changes https://github.com/microsoft/TypeScript/pull/2498/files/197a42a692d818d683451820c8896c25320034b1#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/2498/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Cyrus Najmabadi (CyrusNajmabadi)https://github.com/CyrusNajmabadi
Mar 26, 2015https://github.com/microsoft/TypeScript/pull/2498#discussion_r27182983
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
Mar 26, 2015https://github.com/microsoft/TypeScript/pull/2498#discussion_r27183237
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
Mar 26, 2015https://github.com/microsoft/TypeScript/pull/2498#issuecomment-86291726
#1900 (comment)https://github.com/microsoft/TypeScript/issues/1900#issuecomment-76583563
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
March 25, 2015 19:06https://github.com/microsoft/TypeScript/pull/2498#commits-pushed-17719e8
https://github.com/JsonFreeman
Fix comment to be more accuratehttps://github.com/microsoft/TypeScript/pull/2498/commits/17719e85ff1d4f05e6df257c9a3f787c055c8ef9
17719e8https://github.com/microsoft/TypeScript/pull/2498/commits/17719e85ff1d4f05e6df257c9a3f787c055c8ef9
https://github.com/JsonFreeman
Merge branch 'master' into iteratorSpreadDestructurehttps://github.com/microsoft/TypeScript/pull/2498/commits/de8de7ac969fe7f60871efdbdc8f0e728b717223
de8de7ahttps://github.com/microsoft/TypeScript/pull/2498/commits/de8de7ac969fe7f60871efdbdc8f0e728b717223
https://github.com/JsonFreeman
Add clarifying comment about checkExpressionCachedhttps://github.com/microsoft/TypeScript/pull/2498/commits/903c1d8dd8b1768f843be86d6fdf2b6da1a036df
903c1d8https://github.com/microsoft/TypeScript/pull/2498/commits/903c1d8dd8b1768f843be86d6fdf2b6da1a036df
https://github.com/yuit
Yui (yuit)https://github.com/yuit
Apr 8, 2015https://github.com/microsoft/TypeScript/pull/2498#issuecomment-91003147
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
April 8, 2015 16:14https://github.com/microsoft/TypeScript/pull/2498#commits-pushed-d459c59
https://github.com/JsonFreeman
Merge branch 'master' ofhttps://github.com/microsoft/TypeScript/pull/2498/commits/d459c590281bc0a64cc08b0f2a19ff07146ce5fe
https://github.com/Microsoft/TypeScripthttps://github.com/Microsoft/TypeScript
into…https://github.com/microsoft/TypeScript/pull/2498/commits/d459c590281bc0a64cc08b0f2a19ff07146ce5fe
d459c59https://github.com/microsoft/TypeScript/pull/2498/commits/d459c590281bc0a64cc08b0f2a19ff07146ce5fe
https://github.com/JsonFreeman
Update baselines for preserving newlineshttps://github.com/microsoft/TypeScript/pull/2498/commits/846c2252970b9f59d9c1ea8af53549f001ebd751
846c225https://github.com/microsoft/TypeScript/pull/2498/commits/846c2252970b9f59d9c1ea8af53549f001ebd751
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
Apr 8, 2015 https://github.com/microsoft/TypeScript/pull/2498#ref-commit-21a5611
https://github.com/JsonFreeman
Merge pull requesthttps://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e
#2498https://github.com/microsoft/TypeScript/pull/2498
from Microsoft/iteratorSpreadDestructurehttps://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e
21a5611https://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
21a5611https://github.com/microsoft/TypeScript/commit/21a561183969db1273daec95651f99132413904e
Apr 8, 2015https://github.com/microsoft/TypeScript/pull/2498#event-276743814
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
April 8, 2015 23:58https://github.com/microsoft/TypeScript/pull/2498#event-276743845
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Jun 18, 2018https://github.com/microsoft/TypeScript/pull/2498#event-1686927308
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F2498
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/2498
https://github.com/JsonFreeman
https://github.com/yuit
https://github.com/CyrusNajmabadi
https://github.com/msftclas
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.