Revert "Remove typings and replace missing methods with vscodes (#8217)" (#8240)

This reverts commit 22a427f934.
This commit is contained in:
Elliot Boschwitz
2019-11-06 11:33:55 -08:00
committed by GitHub
parent 3b1eaca58e
commit e801a04bcf
184 changed files with 43388 additions and 634 deletions

View File

@@ -32,3 +32,11 @@ export function mixin(destination: any, source: any, overwrite: boolean = true,
}
return destination;
}
export function entries<T>(o: { [key: string]: T }): [string, T][] {
return Object.keys(o).map(k => [k, o[k]] as [string, T]);
}
export function values<T>(o: { [key: string]: T }): T[] {
return Object.keys(o).map(k => o[k]);
}