UNPKG

dayjs

Version:

2KB immutable date time library alternative to Moment.js with the same modern API

1 lines 698 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=t()}(this,(function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.apply(this,arguments)}return function(t,n,o){o.updateLocale=function(t,n){var r=o.Ls[t];if(r)return(n?Object.keys(n):[]).forEach((function(t){r[t]&&n[t]&&"object"==typeof r[t]&&"object"==typeof n[t]&&!Array.isArray(r[t])?r[t]=e({},r[t],n[t]):r[t]=n[t]})),r}}}));