export function isNumber(value) { if (typeof value === 'symbol') { return false; } const val = '' + value; return !isNaN(parseFloat(val)) && val.replace(/[^\d.]+?/gim, '').length === val.length; }