☰
Debian Codegraph
@
0.1.1-5.1
0.1.1-5
/
/
vendor
/
static
/
moment
/
src
/
lib
/
utils
/
defaults.js
☽
☼
vendor/static/moment/src/lib/utils/defaults.js
code
plain
raw
Expat
JS Foundation and other contributors; Tim Wood, Iskren Chernev, Moment.js contributors
debian/copyright
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
}