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