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

Function getSetWeek

tests/test_code/js/moment/moment.js:1429–1432  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

1427 // MOMENTS
1428
1429 function getSetWeek(input) {
1430 var week = this.localeData().week(this);
1431 return input == null ? week : this.add((input - week) * 7, 'd');
1432 }
1433
1434 function getSetISOWeek(input) {
1435 var week = weekOfYear(this, 1, 4).week;

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected