Title: Array method definition revamp: Use case collection · Issue #36554 · microsoft/TypeScript · GitHub
Open Graph Title: Array method definition revamp: Use case collection · Issue #36554 · microsoft/TypeScript
X Title: Array method definition revamp: Use case collection · Issue #36554 · microsoft/TypeScript
Description: We've gotten numerous issue reports and PRs to change the methods of Array, particularly reduce, map, and filter. The built-in test suite doesn't cover these very well, and these methods interact with each other and the surrounding conte...
Open Graph Description: We've gotten numerous issue reports and PRs to change the methods of Array, particularly reduce, map, and filter. The built-in test suite doesn't cover these very well, and these methods interact w...
X Description: We've gotten numerous issue reports and PRs to change the methods of Array, particularly reduce, map, and filter. The built-in test suite doesn't cover these very well, and these methods in...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/36554
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Array method definition revamp: Use case collection","articleBody":"We've gotten numerous issue reports and PRs to change the methods of `Array`, particularly `reduce`, `map`, and `filter`. The built-in test suite doesn't cover these very well, and these methods interact with each other and the surrounding contextual type in fairly subtle ways.\r\n\r\n@jablko has done a great job at #33645 collecting a variety of issues into a single PR; we need to augment this PR (or something like this) with a proper test suite so we can be sure about what's being changed.\r\n\r\nI'd like to create a clearinghouse issue here to collect **self-contained** (I CANNOT POSSIBLY STRESS THIS ENOUGH, **SELF-CONTAINED**, DO NOT IMPORT FROM RXJS OR WHAT HAVE YOU) code samples that make use of the array methods.\r\n\r\nPlease include with your snippet:\r\n * Compiler settings\r\n * Compiler version you were testing with\r\n * The **expected** behavior (examples that should and should not produce errors are both useful)\r\n * No imports or exports; snippets need to be self-contained so that we can put them into our test suite without extra complications\r\n\r\nOnce we've established a critical mass of code snippets, we can start combining the existing PRs into an all-up revamp and assess its impact to real-world code suites to figure out which changes don't result in unacceptable breaking changes.\r\n\r\nself-contained","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2020-01-31T21:30:14Z","url":"https://github.com/microsoft/TypeScript/issues/36554"}
| react-profiling | 0 |
| react-import-map | react,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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0ef7e5da-89cc-ed86-a207-cd4c78372788 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0F6:311640:88EE1E:AF7241:6B00EB2E |
| html-safe-nonce | e80fb6bc66f5a69bf1ebbc04add88a612b8ece1660b4c1ae6b02a331b8ef5a77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEY2OjMxMTY0MDo4OEVFMUU6QUY3MjQxOjZCMDBFQjJFIiwidmlzaXRvcl9pZCI6Ijg3NzQ3MTM0NjYwNTQ4NDg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8038ee1af47b29c525fede99dc6d6425a9b52e16fae186fe2d04dfd6b1fbc974 |
| hovercard-subject-tag | issue:558382666 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/36554/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fe720096dce34f924a555db5bc90ede543574eab9b5a04df4f763913bc4b216/microsoft/TypeScript/issues/36554 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fe720096dce34f924a555db5bc90ede543574eab9b5a04df4f763913bc4b216/microsoft/TypeScript/issues/36554 |
| og:image:alt | We've gotten numerous issue reports and PRs to change the methods of Array, particularly reduce, map, and filter. The built-in test suite doesn't cover these very well, and these methods interact w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width