面试题答案一键面试function merge< T extends object, U extends object >(obj1: T, obj2: U): T & U { return {...obj1, ...obj2 }; }