Created
March 26, 2022 10:41
-
-
Save armand1m/e343e5c1b4e9d0156663019e685ad10d to your computer and use it in GitHub Desktop.
isOdd function implemented using bitwise comparison in js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const isOdd = (num) => Boolean(num & 0x01); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment