12345678910111213141516171819202122232425262728293031 |
- import toInteger from "../_lib/toInteger/index.js";
- import addYears from "../addYears/index.js";
- import requiredArgs from "../_lib/requiredArgs/index.js";
- export default function subYears(dirtyDate, dirtyAmount) {
- requiredArgs(2, arguments);
- var amount = toInteger(dirtyAmount);
- return addYears(dirtyDate, -amount);
- }
|