initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
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');
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue