Checks whether something is null or undefined.
Would be useful for OpenINF/openinf-util-object#133. We can have it out in the next minor…
Can this be achieved solely using Nullish coalescing? Maybe in the TS, but now wondering what ES year we are searching for compatibility with since this is a relatively new language feature.
Refs: https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#improved-intersection-reduction-union-compatibility-and-narrowing
/cc @septs @ignoreintuition
Checks whether something is
nullorundefined.Would be useful for OpenINF/openinf-util-object#133. We can have it out in the next minor…
Can this be achieved solely using Nullish coalescing? Maybe in the TS, but now wondering what ES year we are searching for compatibility with since this is a relatively new language feature.
Refs: https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#improved-intersection-reduction-union-compatibility-and-narrowing
/cc @septs @ignoreintuition