面试题答案一键面试function mergeObjects<T extends Record<string, any>>(obj1: T, obj2: T): T { return {...obj1, ...obj2 }; }