@js-sugar/date
Version:
A multi-calendar, tree-shakable, extensible, immutable and lightweight date library for JavaScript
1 lines • 677 B
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["jss-date"]=e():t["jss-date"]=e()}(this,(function(){return(this.webpackChunkjss_date=this.webpackChunkjss_date||[]).push([[346,546],{488:(t,e,n)=>{"use strict";function o(t){let e=t.toObject();return t.calendar.daysInMonth(e.year,e.month)}n.r(e),n.d(e,{daysInMonth:()=>o})},599:(t,e,n)=>{"use strict";n.r(e),n.d(e,{setMonth:()=>s});var o=n(488);function s(t,e){const n=Math.min(t.day,(0,o.daysInMonth)(t.clone({month:e})));return t.clone({month:e,day:n})}}},t=>{"use strict";var e;return e=599,t(t.s=e)}])}));