ant-design/components/_util/isNumeric.ts

6 lines
130 B
TypeScript
Raw Normal View History

2019-01-12 18:42:15 +08:00
const isNumeric = (value: any): boolean => {
return !isNaN(parseFloat(value)) && isFinite(value);
};
export default isNumeric;