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 b5fe328 commit 92a63b9Copy full SHA for 92a63b9
src/Pagination.jsx
@@ -8,10 +8,14 @@ import LOCALE from './locale/zh_CN';
8
9
function noop() {}
10
11
-function isInteger(value) {
+function isInteger(v) {
12
+ const value = Number(v);
13
return (
14
// eslint-disable-next-line no-restricted-globals
- typeof value === 'number' && isFinite(value) && Math.floor(value) === value
15
+ typeof value === 'number' &&
16
+ !isNaN(value) &&
17
+ isFinite(value) &&
18
+ Math.floor(value) === value
19
);
20
}
21
0 commit comments