Closed winixt closed 2 years ago
return val === null && val === undefined; 应该是 return val === null || val === undefined;
return val === null && val === undefined;
return val === null || val === undefined;
export function isNil<T>(val: T | null | undefined): val is null | undefined { return val === null && val === undefined; }
确实存在,非常感谢
return val === null && val === undefined;
应该是return val === null || val === undefined;