UNPKG

@yookue/ts-lang-utils

Version:

Common lang utilities for typescript

8 lines 182 B
export function addMonth(date, amount) { if (!date || !amount) { return date; } var result = new Date(date); result.setMonth(date.getMonth() + amount); return result; }