aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/utils/defaults.js
blob: 45c5e8794247286e8ee4399d47e75dadd4ea2aad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// Pick the first defined of two or three arguments.
export default function defaults(a, b, c) {
    if (a != null) {
        return a;
    }
    if (b != null) {
        return b;
    }
    return c;
}