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