mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-18 17:49:40 +08:00
10 lines
153 B
JavaScript
10 lines
153 B
JavaScript
/*
|
|
* function to check if number is odd
|
|
* return true if number is odd
|
|
* else false
|
|
*/
|
|
|
|
export const isOdd = (value) => {
|
|
return !!((value & 1))
|
|
}
|