We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a851e commit 8033cfcCopy full SHA for 8033cfc
lib/isIntegers.js
@@ -6,7 +6,7 @@
6
*/
7
exports.isIntegers = (...params) => {
8
if (params.length === 0) throw Error('Please provide at least one number to evaluate isInteger.');
9
- if (params.some(param => Number.isNaN(Number.parseFloat(param, 10)))) throw Error('Please provide all numbers to evaluate isInteger.');
+ if (params.some(param => Number.isNaN(Number.parseFloat(param)))) throw Error('Please provide all numbers to evaluate isInteger.');
10
if (params.some(param => !Number.isInteger(Number.parseFloat(param)))) return false;
11
12
return true;
0 commit comments