in Output/ChatGPT4o_august_0509/JS/contextual_experiment/update_react/1725354186/src/utils/utils.ts [15:28]
public static extend<T, U>(first: T, second: U): T & U {
const result = {} as T & U;
for (const key in first) {
if (first.hasOwnProperty(key)) {
(result as any)[key] = first[key];
}
}
for (const key in second) {
if (second.hasOwnProperty(key)) {
(result as any)[key] = second[key];
}
}
return result;
}