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
I need a secure JavaScript validator for validating "safe int" type.
example
class MyClass { @IsSafeInt() someProperty: number; }
use Number.isSafeInteger.
export function isSafeInt(val: unknown): val is Number { return typeof val === 'number' && Number.isSafeInteger(val); }
The text was updated successfully, but these errors were encountered:
I'm moving this to the discussion tab, as we are trying to keep the issue count low. Please see this issue for an explanation.
Sorry, something went wrong.
No branches or pull requests
Description
I need a secure JavaScript validator for validating "safe int" type.
example
Proposed solution
use Number.isSafeInteger.
The text was updated successfully, but these errors were encountered: