cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

defaults.js (203B)


      1// Pick the first defined of two or three arguments.
      2export 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}