typeNullish=null|undefined;typeNullable<T> =T|Nullish;functionisUndefined(value:unknown): value isundefined {return value ===undefined;}functionisNotUndefined<T>( value:T): value isExclude<T,undefined> {return value !==undefined;}functionisNull(value:unknown): value isnull {return value ===null;}functionisNotNull<T>(value:T): value isExclude<T,null> {return value !==null;}functionisNullish(value:unknown): value isNullish {returnisNull(value) ||isUndefined(value);}functionisNotNullish<T>( value:T): value isNonNullable<T> {return!isNullish(value);}