(mom, unit, value)
| 15516 | } |
| 15517 | |
| 15518 | function set$1 (mom, unit, value) { |
| 15519 | if (mom.isValid() && !isNaN(value)) { |
| 15520 | if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) { |
| 15521 | mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month())); |
| 15522 | } |
| 15523 | else { |
| 15524 | mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); |
| 15525 | } |
| 15526 | } |
| 15527 | } |
| 15528 | |
| 15529 | // MOMENTS |
| 15530 |
no test coverage detected