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 we use Prettier, which removes all redundant parentheses, using ** instead of Math.Pow is often less readable.
Compare
state.zoom * Math.pow(1.1, action.delta / 120)
with
state.zoom * 1.1 ** (action.delta / 120)
The text was updated successfully, but these errors were encountered:
Resolve #3
1a8e733
Math.pow is not a bad practice.
Should we standardize on Math.pow() then and disallow ** or should a mix be allowed? I think consistency is good so in my mind we should avoid a mix.
Math.pow()
**
Sorry, something went wrong.
No branches or pull requests
Since we use Prettier, which removes all redundant parentheses, using ** instead of Math.Pow is often less readable.
Compare
with
The text was updated successfully, but these errors were encountered: