mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
Fix typo
This commit is contained in:
@@ -271,7 +271,7 @@ namespace ts {
|
||||
return result;
|
||||
}
|
||||
|
||||
// Maps from T to T and avoids allocation of all elements map to themselves
|
||||
// Maps from T to T and avoids allocation if all elements map to themselves
|
||||
export function sameMap<T>(array: T[], f: (x: T, i: number) => T): T[] {
|
||||
let result: T[];
|
||||
if (array) {
|
||||
|
||||
Reference in New Issue
Block a user