Debian Codegraph @

vendor/static/moment/src/lib/utils/defaults.js

raw
1 // Pick the first defined of two or three arguments.
2 export default function defaults(a, b, c) {
3 if (a != null) {
4 return a;
5 }
6 if (b != null) {
7 return b;
8 }
9 return c;
10 }