2022-08-23 TypeScriptでnullの型ガード if(valName === null){return undefined} nullはobjectらしい。 if(typeof valName === 'null'){return undefined}とかだとうまく型ガードできない blog.hirokuma.work