DEV Community

Discussion on: Can you hack this? #2

Collapse
 
idodav profile image
Ido David

another solution:
isEven = (num) => Number.isInteger(num) && (!(num & 1))