We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? # to your account
Playground link with relevant code
const hello = { [Symbol.toPrimitive](hint: any) { if (hint === 'string') { return 233; } return 666; } }; console.log(`${hello}`);
return "666"
return "233"
The text was updated successfully, but these errors were encountered:
Duplicate of #39744 and fixed by #39744
Sorry, something went wrong.
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
Bug Report
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
return "666"
π Expected behavior
return "233"
The text was updated successfully, but these errors were encountered: