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