半角/全角の変換
code:ts
const zenkaku2hankaku = (str: string) => {
return str.replace(/
A-Za-z0-9
/g, s =>
String.fromCharCode(s.charCodeAt(0) - 0xfee0),
);
};