Title: Cast to "
Open Graph Title: Cast to "
X Title: Cast to "
Description: This code does not work: for (let i = 0; i < (
Open Graph Description: This code does not work: for (let i = 0; i < (
X Description: This code does not work: for (let i = 0; i < (<any[]>(<any>res).Data).length; i++) { } if I'll refactor to this: let ln = (<any[]>(<any>res).Data).length; for (let i ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/43720
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cast to \"\u003cany[]>\" not possible within \"\u003c\" comparison","articleBody":"This code does not work:\r\n\r\n for (let i = 0; i \u003c (\u003cany[]>(\u003cany>res).Data).length; i++) { }\r\n\r\nif I'll refactor to this:\r\n\r\n\tlet ln = (\u003cany[]>(\u003cany>res).Data).length;\r\n\tfor (let i = 0; i \u003c ln; i++) { }\r\n\r\nit works.\r\n\r\nis this intended?","author":{"url":"https://github.com/jogibear9988","@type":"Person","name":"jogibear9988"},"datePublished":"2021-04-17T20:26:29Z","url":"https://github.com/microsoft/TypeScript/issues/43720"}
| 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:23da3e72-7653-1e16-cdb0-f6c67a32a949 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0FA:1352CE:4F62BF:680612:6B017852 |
| html-safe-nonce | 9317d1ce39687c1615d8316151e6ec4f1e7c791d677e80e93b429276fbe8a7d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEZBOjEzNTJDRTo0RjYyQkY6NjgwNjEyOjZCMDE3ODUyIiwidmlzaXRvcl9pZCI6Ijg3MTAyMzUyNDA0ODE3ODE4NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6688175e7276f8302d3c2a935f44961aea92bd62169a19fb11ef190fe84a70eb |
| hovercard-subject-tag | issue:860507994 |
| 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/43720/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10d8e581ee5b0d7d854186721547d2aacce80974c71cb2a1c507c3b9c6dbd9c2/microsoft/TypeScript/issues/43720 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10d8e581ee5b0d7d854186721547d2aacce80974c71cb2a1c507c3b9c6dbd9c2/microsoft/TypeScript/issues/43720 |
| og:image:alt | This code does not work: for (let i = 0; i < ( |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jogibear9988 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width