Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajimae/isodd
a deno module to check if a given number is an odd number
https://github.com/ajimae/isodd
Last synced: 19 days ago
JSON representation
a deno module to check if a given number is an odd number
- Host: GitHub
- URL: https://github.com/ajimae/isodd
- Owner: ajimae
- License: mit
- Created: 2020-06-16T17:22:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T17:39:09.000Z (over 4 years ago)
- Last Synced: 2024-10-25T10:31:49.159Z (26 days ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦕 isOdd
a deno module to check if a given number is an odd number## Usage
```typescript
import { isOdd } from "https://raw.githubusercontent.com/ajimae/isOdd/master/mod.ts";var numberOne = 3;
const checkOne = isOdd(numberOne);
console.log(checkOne); // truevar numberTwo = 8;
const checkTwo = isOdd(numberTwo);
console.log(checkOne); // false
```## Test
```bash
# unit tests - first clone this repo to your local machine then run
deno test
```## Resources
JavaScript
- [JavaScript Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)Deno
- [Deno Website](https://deno.land)
- [Deno documentation](https://doc.deno.land/https/github.com/denoland/deno/releases/latest/download/lib.deno.d.ts)
- [Deno Standard Library](https://deno.land/std)