6 lines
151 B
TypeScript
6 lines
151 B
TypeScript
export function addDays(date: Date, days: number): Date {
|
|
var result = new Date(date);
|
|
result.setDate(result.getDate() + days);
|
|
return result;
|
|
}
|