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