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