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