/** * @return {boolean} */ function Isphone(str) { var phone = parseInt(str); let pattern = /^[1][3,4,5,7,8][0-9]{9}$/; return pattern.test(phone); }