We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fba7f3 commit 343e703Copy full SHA for 343e703
1 file changed
extensions/git/src/util.ts
@@ -59,6 +59,7 @@ export function eventToPromise<T>(event: Event<T>): Promise<T> {
59
return new Promise(c => once(event)(c));
60
}
61
62
+// TODO@Joao: replace with Object.assign
63
export function assign<T>(destination: T, ...sources: any[]): T {
64
for (const source of sources) {
65
Object.keys(source).forEach(key => destination[key] = source[key]);
0 commit comments