-
-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
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
infra(unicorn): consistent-function-scoping #3255
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #3255 +/- ##
==========================================
- Coverage 99.96% 99.96% -0.01%
==========================================
Files 2805 2805
Lines 217129 217139 +10
Branches 976 972 -4
==========================================
+ Hits 217055 217058 +3
- Misses 74 81 +7
|
@@ -5,6 +5,14 @@ import { seededTests } from '../support/seeded-runs'; | |||
import { MERSENNE_MAX_VALUE } from '../utils/mersenne-test-utils'; | |||
import { times } from './../support/times'; | |||
|
|||
function isFloat(value: number): boolean { | |||
return value % 1 !== 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really get the point of this check. 0 is a valid float.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is more of a check for hasDecimalPart.
Ref: #2439
Move inline functions without scope to the root of the file as standalone functions.
Related: