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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since isNumber currently only checks if the value is a number or infinity.
function px (value: number | string) { if (G.isNumber(value)) return `${value}px` return px } px(1/0) // "Infinitypx" // Proposal: G.isFinite(1/0) // false
To be clear this does not actually add a new type guard since infinity is a number in javascript and typescript does not make the distinction.
The text was updated successfully, but these errors were encountered:
Hi. I made a PR to resolve this issue. please have a look and let me know if it's right.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Since isNumber currently only checks if the value is a number or infinity.
To be clear this does not actually add a new type guard since infinity is a number in javascript and typescript does not make the distinction.
The text was updated successfully, but these errors were encountered: