Skip to content

Instantly share code, notes, and snippets.

@barisbll
Created July 19, 2023 09:17
Show Gist options
  • Save barisbll/4988c3c9f24b5f9a664ce93b28e9f5f8 to your computer and use it in GitHub Desktop.
Save barisbll/4988c3c9f24b5f9a664ce93b28e9f5f8 to your computer and use it in GitHub Desktop.
Dummy library index.ts
/**
* @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