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