repo_description: ✨ Light and Fast AI Assistant. Support: Web | iOS | MacOS | Android |  Linux | Windows
repo_topics: calclaude chatgpt claude cross-platform desktop fe gemini gemini-pro gemini-server gemini-ultra gpt-4o groq nextjs ollama react tauri tauri-app vercel webui
code: export function deepClone<T>(obj: T) {
    return JSON.parse(JSON.stringify(obj));
  }
  
  export function ensure<T extends object>(
    obj: T,
    keys: Array<[keyof T][number]>,
  ) {
    return keys.every(
      (k) => obj[k] !== undefined && obj[k] !== null && obj[k] !== "",
    );
  }
  