UNPKG

@yookue/ts-lang-utils

Version:

Common lang utilities for typescript

8 lines 178 B
export function addDay(date, amount) { if (!date || !amount) { return date; } var result = new Date(date); result.setDate(date.getDate() + amount); return result; }