Use Number.isInteger
.
Not really sure if there's any benefit to using it. Maybe it's more performant. Makes the code marginally cleaner.
number % 1 === 0;
Number.isInteger(number);
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too