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