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