This commit is contained in:
Anders Hejlsberg 2016-10-11 18:28:19 -07:00
parent c9e2f95918
commit 38278ee078

View File

@ -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) {