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