René's URL Explorer Experiment


Title: Ensure that Comparers only return -1, 0, 1 so results can be equated by jakebailey · Pull Request #52897 · microsoft/TypeScript · GitHub

Open Graph Title: Ensure that Comparers only return -1, 0, 1 so results can be equated by jakebailey · Pull Request #52897 · microsoft/TypeScript

X Title: Ensure that Comparers only return -1, 0, 1 so results can be equated by jakebailey · Pull Request #52897 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Ensure that Comparers only return -1, 0, 1 so results can be equated by jakebailey · Pull Request #52897 · microsoft/TypeScript

Open Graph Description: I noticed this while working on cleaning up our (inconsistent) use of the binary search and ordered insert APIs. The binary search API requires that you have comparisons of exactly -1 | 0 | 1, howe...

X Description: I noticed this while working on cleaning up our (inconsistent) use of the binary search and ordered insert APIs. The binary search API requires that you have comparisons of exactly -1 | 0 | 1, howe...

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

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:3e758f6b-9738-1bfd-37b8-6112209fefb6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD55E:3A73AA:17981F9:1DDA4DC:6B0178F7
html-safe-noncea66a6a1db80da132efd766b9c455e9a92b455198e197de821a25685c9e93da17
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTVFOjNBNzNBQToxNzk4MUY5OjFEREE0REM6NkIwMTc4RjciLCJ2aXNpdG9yX2lkIjoiMjg5NjMzODQ5MjM3MDAyNDY5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca0f919012819703510eee58f5623fd855decedfd6d3cb0655efae6f40b46ea76
hovercard-subject-tagpull_request:1249096199
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/52897/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f6a004ed2ba1f2a4c12f3fd99d0eb0fd4452bbdb261ce4dcc44b09bfbc17e18e/microsoft/TypeScript/pull/52897
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f6a004ed2ba1f2a4c12f3fd99d0eb0fd4452bbdb261ce4dcc44b09bfbc17e18e/microsoft/TypeScript/pull/52897
og:image:altI noticed this while working on cleaning up our (inconsistent) use of the binary search and ordered insert APIs. The binary search API requires that you have comparisons of exactly -1 | 0 | 1, howe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejakebailey
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/52897#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F52897
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%2F52897
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/52897
Reloadhttps://github.com/microsoft/TypeScript/pull/52897
Reloadhttps://github.com/microsoft/TypeScript/pull/52897
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
Jake Bailey (jakebailey)https://github.com/jakebailey
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
jakebailey:fix-comparerhttps://github.com/jakebailey/TypeScript/tree/fix-comparer
Conversationhttps://github.com/microsoft/TypeScript/pull/52897
Commits5 (5)https://github.com/microsoft/TypeScript/pull/52897/commits
Checkshttps://github.com/microsoft/TypeScript/pull/52897/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/52897/files
Ensure that Comparers only return -1, 0, 1 so results can be equatedhttps://github.com/microsoft/TypeScript/pull/52897#top
Jake Bailey (jakebailey)https://github.com/jakebailey
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
jakebailey:fix-comparerhttps://github.com/jakebailey/TypeScript/tree/fix-comparer
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issue-1593906738
Playground Linkhttps://www.typescriptlang.org/play?ts=4.9.5#code/KYOwrgtgBAwg9hADgQwE4EsDOcRQN4BQUxUAMsJpgCoAWyuJAvFALQCMANESQKICOYZABsqcEsWYAGLuIDiqYMgAuwVLXpRmbAgF8CBJQE9EwWAhQLUAHioA+TVAAUyAFxQqHKACM3VAJSa9vBIaFg4ANz6ACbAAMZCaKYAZmAgsUroOFCx5ok2ts6+nj7unjkhlm7BFqr5fm5ecHBCiiCR+uU1jpxQbJL9ns7FAYxBuRjYIAB0-IIicH7tBAD0y+40FKaJUKmYyEnAAIQEnYndnn0DTsjDgVDIrN6LJ+PA57390te3o1AATM99EYTGYKqo-vkHIVSt5fCN7OwoAAfKCSZG9doxeLbFJpDJZU4KCF2aEeWEwwmqKqvVDE2z1bxNFr0dqUv7vS5fIZPO7VUKTGYCYSiQGrdZYKASgDmTSixzZHM+gxuPN+DxYT0iCp6nOVP3sAPCQA
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
Ensure that Comparers only return -1, 0, 1 so results can be equatedhttps://github.com/microsoft/TypeScript/pull/52897/commits/2106d54771599640ddc50a4bdcdbabb8a35328bb
2106d54https://github.com/microsoft/TypeScript/pull/52897/commits/2106d54771599640ddc50a4bdcdbabb8a35328bb
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#event-8573770069
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#event-8573770214
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1438906322
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1438906361
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
Jake Bailey (@jakebailey)https://github.com/jakebailey
2106d54https://github.com/microsoft/TypeScript/commit/2106d54771599640ddc50a4bdcdbabb8a35328bb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=147089
The results are in!https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1439133873
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1438935944
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1438938009
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1438939016
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
#52891https://github.com/microsoft/TypeScript/pull/52891
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 21, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1439133873
Jake Bailey (@jakebailey)https://github.com/jakebailey
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/147089/artifacts?artifactName=benchmark&fileId=055BF92BC52239A06DCFC25D702A2C81BBBCBF13240C11EEE7C2C2BE1394A5F902&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
Feb 22, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1441021045
Playgroundhttps://www.typescriptlang.org/play?ts=5.0.0-dev.20230222#code/KYOwrgtgBAwg9hADgQwE4EsDOcRQN4BQUxUAMsJpgCoAWyuJAvFALQCMANESQKICOYZABsqcEsWYAGLuIDiqYMgAuwVLXpRmbAgF8CBJQE9EwWAhQLUAHioA+TVAAUyAFxQqHKACM3VAJSa9vBIaFg4ANz6ACbAAMZCaKYAZmAgsUroOFCx5ok2ts6+nj7unjkhlm7BFqr5fm5ecHBCiiCR+uU1jpxQbJL9ns7FAYxBuRjYIAB0-IIicH7tBAD0y+40FKaJUKmYyEnAAIQEnYndnn0DTsjDgVDIrN6LJ+PA57390te3o1AATM99EYTGYKqo-vkHIVSt5fCN7OwoAAfKCSZG9doxeLbFJpDJZU4KCF2aEeWEwwmqKqvVDE2z1bxNFr0dqUv7vS5fIZPO7VUKTGYCYSiQGrdZYKASgDmTSixzZHM+gxuPN+DxYT0iCp6nOVP3sAPCQA
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 23, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1441022387
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/rbuckton
Ron Buckton (rbuckton)https://github.com/rbuckton
Feb 24, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1443765997
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/rbuckton
Ron Buckton (rbuckton)https://github.com/rbuckton
Feb 24, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1443782922
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 24, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1443950034
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/rbuckton
Ron Buckton (rbuckton)https://github.com/rbuckton
Feb 24, 2023https://github.com/microsoft/TypeScript/pull/52897#issuecomment-1444492115
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
Jake Bailey (jakebailey)https://github.com/jakebailey
August 30, 2023 10:40https://github.com/microsoft/TypeScript/pull/52897#commits-pushed-8c59232
https://github.com/jakebailey
Merge branch 'main' into fix-comparerhttps://github.com/microsoft/TypeScript/pull/52897/commits/8c592320fa1a84c8c6eb5db108f5bb8a0c6378c3
8c59232https://github.com/microsoft/TypeScript/pull/52897/commits/8c592320fa1a84c8c6eb5db108f5bb8a0c6378c3
https://github.com/jakebailey
Use Math.signhttps://github.com/microsoft/TypeScript/pull/52897/commits/0185816d1b294ca15edf970429332a85cd1eacb1
0185816https://github.com/microsoft/TypeScript/pull/52897/commits/0185816d1b294ca15edf970429332a85cd1eacb1
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 21, 2024 https://github.com/microsoft/TypeScript/pull/52897#ref-pullrequest-2113738837
Change detection in organizeImports #57267 https://github.com/microsoft/TypeScript/pull/57267
Jake Bailey (jakebailey)https://github.com/jakebailey
June 29, 2024 17:14https://github.com/microsoft/TypeScript/pull/52897#commits-pushed-c2b2946
https://github.com/jakebailey
Merge branch 'main' into fix-comparerhttps://github.com/microsoft/TypeScript/pull/52897/commits/c2b2946cb9f811401f6cfab1768612f9a7e8e651
c2b2946https://github.com/microsoft/TypeScript/pull/52897/commits/c2b2946cb9f811401f6cfab1768612f9a7e8e651
https://github.com/jakebailey
Merge branch 'main' into fix-comparerhttps://github.com/microsoft/TypeScript/pull/52897/commits/c239571ef082334f8d1eee86a1e522eeb13a19de
c239571https://github.com/microsoft/TypeScript/pull/52897/commits/c239571ef082334f8d1eee86a1e522eeb13a19de
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Aug 16, 2024 https://github.com/microsoft/TypeScript/pull/52897#ref-pullrequest-2471041413
Add lint rule to prevent misuse of Comparison enum #59662 https://github.com/microsoft/TypeScript/pull/59662
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Apr 2, 2025https://github.com/microsoft/TypeScript/pull/52897#event-17099445089
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 16, 2025https://github.com/microsoft/TypeScript/pull/52897#event-20324797425
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
August 20, 2026 05:20https://github.com/microsoft/TypeScript/pull/52897#event-29723579294
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%2F52897
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
Jake Bailey (jakebailey) https://github.com/jakebailey
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52897
https://github.com/jakebailey
https://github.com/typescript-bot
https://github.com/DanielRosenwasser
https://github.com/fatcerberus
https://github.com/rbuckton
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.