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

pull/12859/head
stickmy 6 years ago committed by zombieJ
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…
Cancel
Save