mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
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
This commit is contained in:
9
Maths/IsOdd.js
Normal file
9
Maths/IsOdd.js
Normal file
@ -0,0 +1,9 @@
|
||||
/*
|
||||
* function to check if number is odd
|
||||
* return true if number is odd
|
||||
* else false
|
||||
*/
|
||||
|
||||
export const isOdd = (value) => {
|
||||
return !!((value & 1))
|
||||
}
|
Reference in New Issue
Block a user