Created
July 19, 2023 09:17
-
-
Save barisbll/4988c3c9f24b5f9a664ce93b28e9f5f8 to your computer and use it in GitHub Desktop.
Dummy library index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @description | |
* @param {number} n | |
* @returns {boolean} | |
* @example | |
* isOdd(1) // true | |
* isOdd(2) // false | |
* */ | |
export const isOdd = (n: number) => n % 2 === 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment