• Mac
    link
    fedilink
    16
    edit-2
    1 year ago

    who needs modulo when you can get less characters out of

    while (number > 1) {
      number -= 2;
    }
    return number;
    

    very efficient

    edit: or theres the trusty iseven api