Javascript Validate Number Somente
function validateNumber(e) {
const pattern = /^[0-9]$/;
return pattern.test(e.key )
}
Shadow
function validateNumber(e) {
const pattern = /^[0-9]$/;
return pattern.test(e.key )
}