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