MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / getSetMonth

Function getSetMonth

tests/test_code/js/moment/moment.js:1115–1123  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1113 }
1114
1115 function getSetMonth(value) {
1116 if (value != null) {
1117 setMonth(this, value);
1118 hooks.updateOffset(this, true);
1119 return this;
1120 } else {
1121 return get(this, 'Month');
1122 }
1123 }
1124
1125 function getDaysInMonth() {
1126 return daysInMonth(this.year(), this.month());

Callers

nothing calls this directly

Calls 2

setMonthFunction · 0.85
getFunction · 0.85

Tested by

no test coverage detected