Use explicit coercion

This commit is contained in:
Ryan Cavanaugh 2016-09-20 11:30:34 -07:00
parent 76f51ad37c
commit aa03a04c7f

View file

@ -95,14 +95,14 @@ namespace ts.server {
return 0;
}
return Math.max.apply(Math, paths.map(path => {
return Math.max(...paths.map(path => {
if (host.directoryExists(path)) {
return host.getModifiedTime(path);
return +host.getModifiedTime(path);
}
else {
return 0;
}
}));
});
}
export function mergeMaps(target: MapLike<any>, source: MapLike <any>): void {