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