sean.zhou
2022-03-22 9b7a37dede2c08bb9993c45d60ed1af0936cc998
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
  const str = String(phoneNum)
  return str.substring(0, 3) + '****' + str.slice(-4)
}