KNXCloud / lowcode-engine-vue

Lowcode engine renderer and simulator for vue
MIT License
357 stars 77 forks source link

代码里面的 isNil 会一直是 false #41

Closed winixt closed 2 years ago

winixt commented 2 years ago

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;
}
keuby commented 2 years ago

确实存在,非常感谢