TypeScriptでnullの型ガード

if(valName === null){return undefined}

nullはobjectらしい。
if(typeof valName === 'null'){return undefined}とかだとうまく型ガードできない

Redirecting to old site...

blog.hirokuma.work