Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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); // true

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