题解 | #验证是否是身份证#
验证是否是身份证
https://www.nowcoder.com/practice/e334cd14cbd14134a12fb605072fca44
const _isCard = number => {
if (number.length != 18) {
return false
}
// 数字17位,最后一位可数字可大写字母
const reg = /^\d{17}([A-Z0-9])$/
return reg.test(number)
}



