Skip to content

Commit d23f692

Browse files
committed
rename arrayFromMap -> convertToArray
1 parent 2ce64f2 commit d23f692

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ namespace ts {
17251725
}
17261726

17271727
function createTypeofType() {
1728-
return getUnionType(arrayFromMap(typeofEQFacts.keys(), s => getLiteralTypeForText(TypeFlags.StringLiteral, s)));
1728+
return getUnionType(convertToArray(typeofEQFacts.keys(), s => getLiteralTypeForText(TypeFlags.StringLiteral, s)));
17291729
}
17301730

17311731
// A reserved member name starts with two underscores, but the third character cannot be an underscore

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ namespace ts {
895895
return result;
896896
}
897897

898-
export function arrayFromMap<T, U>(iterator: Iterator<T>, f: (value: T) => U) {
898+
export function convertToArray<T, U>(iterator: Iterator<T>, f: (value: T) => U) {
899899
const result: U[] = [];
900900
for (let { value, done } = iterator.next(); !done; { value, done } = iterator.next()) {
901901
result.push(f(value));

0 commit comments

Comments
 (0)