René's URL Explorer Experiment


Title: `isNaN` and `isFinite` should accept number or string · Issue #4002 · microsoft/TypeScript · GitHub

Open Graph Title: `isNaN` and `isFinite` should accept number or string · Issue #4002 · microsoft/TypeScript

X Title: `isNaN` and `isFinite` should accept number or string · Issue #4002 · microsoft/TypeScript

Description: According to the ES5.1 spec (15.1.2.4, 15.1.2.5), isNaN(number) and isFinite(number) perform the ToNumber(number) abstract operation before checking if number coerces to NaN or ±Infinity. To me, this implies that the argument to these fu...

Open Graph Description: According to the ES5.1 spec (15.1.2.4, 15.1.2.5), isNaN(number) and isFinite(number) perform the ToNumber(number) abstract operation before checking if number coerces to NaN or ±Infinity. To me, th...

X Description: According to the ES5.1 spec (15.1.2.4, 15.1.2.5), isNaN(number) and isFinite(number) perform the ToNumber(number) abstract operation before checking if number coerces to NaN or ±Infinity. To me, th...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/4002

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`isNaN` and `isFinite` should accept number or string","articleBody":"According to the ES5.1 spec (15.1.2.4, 15.1.2.5), `isNaN(number)` and `isFinite(number)` perform the `ToNumber(number)` abstract operation before checking if `number` coerces to `NaN` or `±Infinity`.\n\nTo me, this implies that the argument to these functions can be any type. I think TypeScript should follow this as well. Why check if a variable is a number before checking if it's not a number (NaN)? Why manually coerce a variable into a number before calling a function that, according to the specification, does just that?\n","author":{"url":"https://github.com/darrylring","@type":"Person","name":"darrylring"},"datePublished":"2015-07-23T16:46:16Z","url":"https://github.com/microsoft/TypeScript/issues/4002"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:46203728-d25e-b066-dd3b-c1e8998eda5b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE436:3CBB3E:29B3A7F:353E013:6B01EA04
html-safe-nonce4c60fcfa3a60fb326eba69b6a8f1430b4ab2ab28134664b1c459f16f7b7699c1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDM2OjNDQkIzRToyOUIzQTdGOjM1M0UwMTM6NkIwMUVBMDQiLCJ2aXNpdG9yX2lkIjoiNTgyMjM3MTg2NzEzODMyMDkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ce7493692b9b8daba6d9e9ab082b7a83599d466f058ebd7d8913468e3c29eb1
hovercard-subject-tagissue:96856251
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/4002/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d968a306575eaa7ed9eef0710d24634eebb781f816b0c5cae2138eea384b9d60/microsoft/TypeScript/issues/4002
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d968a306575eaa7ed9eef0710d24634eebb781f816b0c5cae2138eea384b9d60/microsoft/TypeScript/issues/4002
og:image:altAccording to the ES5.1 spec (15.1.2.4, 15.1.2.5), isNaN(number) and isFinite(number) perform the ToNumber(number) abstract operation before checking if number coerces to NaN or ±Infinity. To me, th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedarrylring
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/4002#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F4002
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%2Fissues%2F4002
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/4002
Reloadhttps://github.com/microsoft/TypeScript/issues/4002
Reloadhttps://github.com/microsoft/TypeScript/issues/4002
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/4002
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/4002
isNaN and isFinite should accept number or stringhttps://github.com/microsoft/TypeScript/issues/4002#top
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issue-96856251
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124183752
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124190572
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124197510
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124201510
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124206486
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#event-363718791
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124208010
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124213044
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124218690
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124219757
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#event-363764760
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#event-363766550
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on Jul 23, 2015https://github.com/microsoft/TypeScript/issues/4002#issuecomment-124256470
https://github.com/MadaraUchiha
Madara Uchiha (MadaraUchiha)https://github.com/MadaraUchiha
on May 28, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-304498084
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Kitson Kelly (@kitsonk)https://github.com/kitsonk
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on May 28, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-304528861
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 29, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-304555924
https://github.com/MadaraUchiha
Madara Uchiha (MadaraUchiha)https://github.com/MadaraUchiha
on May 29, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-304585666
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/darrylring
Darryl Ring (darrylring)https://github.com/darrylring
on May 29, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-304586733
https://github.com/MadaraUchiha
Madara Uchiha (MadaraUchiha)https://github.com/MadaraUchiha
on May 29, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-304603193
Darryl Ring (@darrylring)https://github.com/darrylring
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Jun 2, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-305827903
Madara Uchiha (@MadaraUchiha)https://github.com/MadaraUchiha
https://github.com/MadaraUchiha
Madara Uchiha (MadaraUchiha)https://github.com/MadaraUchiha
on Jun 2, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-305832013
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Jun 2, 2017https://github.com/microsoft/TypeScript/issues/4002#issuecomment-305846616
confusinghttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN#Confusing_special-case_behavior
#5850https://github.com/microsoft/TypeScript/issues/5850
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/4002#event-1689607448
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 17, 2024https://github.com/microsoft/TypeScript/issues/4002#issuecomment-2118419718
FAQ entryhttps://github.com/microsoft/TypeScript/wiki/FAQ#numberisfinite-and-numberisnan-are-typed-correctly
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/4002
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/4002
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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.