-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7691551
commit 6418756
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Math :memo: | ||
|
||
## What are flags? | ||
|
||
#### bunch of mathematical helpers useful for mathematical problems | ||
|
||
## is Odd | ||
|
||
```js | ||
import { isOdd } from "type-mate"; | ||
|
||
console.log(isOdd(24)); // returns false | ||
``` | ||
|
||
## is Even | ||
|
||
```js | ||
import { isEven } from "type-mate"; | ||
|
||
console.log(isEven(24)); // returns true | ||
``` | ||
|
||
## Divide | ||
|
||
```js | ||
import { divide } from "type-mate"; | ||
|
||
console.log(divide(24 / 2)); // returns 12 | ||
``` |