Rename and consolidate map iteration helpers

This commit is contained in:
Andy Hanson committed 2016-12-28 09:16:38 -08:00
1 parent 39c19a74ea
commit 932eaa3f90
13 files changed
+32 -55

No files matched your search

+1 -1
View File
@@ -753,7 +753,7 @@ namespace ts {
function getNameOfCompilerOptionValue(value: CompilerOptionsValue, customTypeMap: Map<string | number>): string | undefined {
// There is a typeMap associated with this command-line option so use it to map value back to its name
return forEachInMap(customTypeMap, (mapValue, key) => {
return forEachEntry(customTypeMap, (mapValue, key) => {
if (mapValue === value) {
return key;
}