TypeScriptでnullの型ガード

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

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

[https://blog.hirokuma.work/2021/07/typescriptnullundefined.html:embed:cite]