• Kogasa
          link
          fedilink
          07 months ago

          It’s probably valid javascript that returns “-1” or the empty string depending on if “b” is undefined or null

      • @cerement@slrpnk.net
        link
        fedilink
        17 months ago

        it’s just return a and b or c is the closest Lua has to a ternary operator, but yes, for the above you could shorten it to return a or b (“or returns the first argument if true, otherwise second argument is returned”)