I dont care if youre rich

I dont care if youre rich
Youre just a rich retard

Attached: Screenshot_20220707-212804_Samsung Internet.jpg (1600x2560, 758.27K)

shut the fuck up phone poster

looks like a tablet to me

what's wrong with const isOdd = num => !!(num%2)?

Nothing is wrong with that
Except why does it have two exclamation points?

>400k weekly downloads
JS babbies are something else

That way you force true or false instead of returning the result of num % 2.

To turn 1 to true, retard

I don’t give a shit you stupid piece of shit enjoy the ride YOU are on THE HIGHWAY now

>JS babbies are something else
if that something else is lazy, poorly educated and dangerously incompetent.. then yes, they sure are. there's a lot of fucking retards out there that are so lazy that they'd rather import a dependency than code it themselves, no matter how small the routine is.

#define isOdd(n) (1 == (n) % 2)

Uhm, sorry sweatie, that is not valid JS.

Resume:
Author of code repository on with over 368,000 downloads per week.

>meanwhile all the code they wrote is and an export function for it

>doesn't work for negatives

What if I'm not rich?

Every single time this comes up all the donner kruger retards give an implementation that doesn't work on negative numbers. Always makes me laugh.

>dangerously incompetent
there is nothing dangerous about web dev

this would not pass code review since !! is overly clever

should probably be something like Boolean(num%2) for the sake of readability/clarity

0.5 is now odd?

comparing with is-odd module
doesn't throw an error if num isn't a number
>> isOdd("3")

In this thread I learned that 1.5 is odd and -1 is even.

Here's v1.1: const isOdd = n => !!(n%2&&!(n%1))