wupengfei
2025-04-15 a30f98e7e3ca49a0169fc1271eb51a41e71fd8c7
1
2
3
export function isDef<T = unknown>(val?: T): val is T {
  return typeof val !== 'undefined';
}