ConstCheck if the given string is a mobile phone number.
Usage:
import { isValidPhoneNumber } from "mazey";
const ret1 = isValidPhoneNumber("13800138000");
const ret2 = isValidPhoneNumber("1380013800");
const ret3 = isValidPhoneNumber("138001380000");
const ret4 = isValidPhoneNumber("1380013800a");
console.log(ret1, ret2, ret3, ret4);
Output:
true false false false
Return true if the given string is a mobile phone number.
Alias of isValidPhoneNumber.
This helper validates an 11-digit Chinese mobile-shaped number. It does not detect a browser's device form factor; use
isPhonefor that purpose.