UNPKG

verificator

Version:

Client and server-side validation JavaScript library

8 lines (7 loc) 255 B
'use strict'; exports.__esModule = true; var isNumeric = function isNumeric(value) { var type = typeof value; return (type === 'number' || type === 'string') && !isNaN(Number(value) - parseFloat(String(value))); }; exports['default'] = isNumeric;