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

Function defaults

tests/test_code/js/moment/moment.js:2550–2558  ·  view source on GitHub ↗
(a, b, c)

Source from the content-addressed store, hash-verified

2548
2549 // Pick the first defined of two or three arguments.
2550 function defaults(a, b, c) {
2551 if (a != null) {
2552 return a;
2553 }
2554 if (b != null) {
2555 return b;
2556 }
2557 return c;
2558 }
2559
2560 function currentDateArray(config) {
2561 // hooks is actually the exported moment object

Callers 2

configFromArrayFunction · 0.85
dayOfYearFromWeekInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected