defaults.js 203 Bytes Raw Blame History Permalink 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; }