husq
2023-09-26 e0b94bb134d6bfce5beee838ab63d56cb4c5e3b1
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
  const str = String(phoneNum)
  return str.substring(0, 3) + '****' + str.slice(-4)
}