/* * function to check if number is odd * return true if number is odd * else false */ export const isOdd = (value) => { return !!((value & 1)) }
© The Algorithms 2021