fix: patch to components/_util/isNumeric type check (#12799)

This commit is contained in:
stickmy 2018-10-28 11:09:57 +08:00 committed by zombieJ
parent 9aa62d42c2
commit 51e895b67f

View File

@ -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);
};