Type that allows assignment of any value except for nullish values (null or undefined). It ensures that only non-nullish values can be assigned.
null
undefined
Type that allows assignment of any value except for nullish values (
nullorundefined). It ensures that only non-nullish values can be assigned.