• Python
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I mean… that’s JavaScript. Why would I need a function like that in JavaScript to begin with? And why would I trust my fellow Coworkers to not fuck up the input validation on it? 9 all the way baby

    • Python
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Although I would probably shorten it to ‘return x>y’ instead of that if/else block.