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