DJIsean
2022-07-26 d2862bafd13108313d8085bdacf3f5b0130193ef
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
  const str = String(phoneNum)
  return str.substring(0, 3) + '****' + str.slice(-4)
}