mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 12:43:36 +08:00
feat: close #935 add azure support
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user