Skip to content

checkPhoneInput

function checkPhoneInput(value): InputState;

Defined in: input.ts:119

Checks a Pakistani mobile number while the user is typing. The 03XX prefix is checked as soon as it is complete. See InputState.

Parameter Type
value string

InputState

checkPhoneInput('0300 12'); // 'incomplete'
checkPhoneInput('0360'); // 'invalid' (prefix not allocated)
checkPhoneInput('03001234567'); // 'valid'