Files
JavaScript/Maths/IsOdd.js
Dumby 7c2f19b691 merge: Rename 2 filenames to follow PascalCase (#816)
* Added LucasSeries

* Added more tests and renamed function

* Changed RangeError to TypeError

* Added Aliquot Sum and tests

* Fix ALiquot tests, need to learn how to use Jest

* Added some explanation for the Aliquot sum

* Change file names of DecimalIsolate & IsOdd to Pascal case
2021-10-26 16:56:45 +05:30

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))
}