mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Rename and consolidate map iteration helpers
This commit is contained in:
1 parent
39c19a74ea
commit
932eaa3f90
13 files changed
+32
-55
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user