The Algorithms logo
The Algorithms
AboutDonate
/*
 * function to check if number is odd
 * return true if number is odd
 * else false
 */

export const isOdd = (value) => {
  return !!((value & 1))
}

IsOdd

v
E
J