Getting Started 📖
Installation 🧩
The only thing you should do is install the package in your framework of choice
bash
npm install @amomammadw/type-mate
bash
yarn add @amomammadw/type-mate
bash
pnpm add @amomammadw/type-mate
Usage 🔑
To use the utility functions you just have to import your desired utility and use it
all utilities are type safe and all type errors are handled precisely 🔥
js
import { isOdd } from "@amomammadw/type-mate";
console.log(isOdd(42)); // returns false
console.log(isOdd("42")); // Error: Please Enter Numbers Only!
console.log(isOdd(41)); // returns true