sean.zhou
2023-04-25 f3e92fa13107b569e0aa4d3ffff013fd2983660b
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
  const str = String(phoneNum)
  return str.substring(0, 3) + '****' + str.slice(-4)
}