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