initial status
This commit is contained in:
15
node_modules/dayjs/esm/plugin/weekday/index.js
generated
vendored
Normal file
15
node_modules/dayjs/esm/plugin/weekday/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export default (function (o, c) {
|
||||
var proto = c.prototype;
|
||||
|
||||
proto.weekday = function (input) {
|
||||
var weekStart = this.$locale().weekStart || 0;
|
||||
var $W = this.$W;
|
||||
var weekday = ($W < weekStart ? $W + 7 : $W) - weekStart;
|
||||
|
||||
if (this.$utils().u(input)) {
|
||||
return weekday;
|
||||
}
|
||||
|
||||
return this.subtract(weekday, 'day').add(input, 'day');
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user