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