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