mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix: patch to components/_util/isNumeric type check (#12799)
This commit is contained in:
parent
9aa62d42c2
commit
51e895b67f
@ -1,4 +1,4 @@
|
||||
const isNumeric = (value: any): boolean => {
|
||||
const isNumeric = <T extends number>(value: any): value is T => {
|
||||
return !isNaN(parseFloat(value)) && isFinite(value);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user