- Lightweight and batteries included utility helper 🔥
- Typesafe and Easy-to-debug Package 😄
- Easy to Use with your Framework of choice 🧰
whenever you want to have a condition for a variable type or whenever you want to check if the parameter is a number
, string
, array
or etc...
TypeMate will come to your assistance and make your life easier while coding your next unicorn app 😄
::: code-group
npm install type-mate
yarn add type-mate
pnpm add type-mate
:::
import { isOdd } from "@amomammadw/type-mate";
console.log(isOdd(42)); // returns false
console.log(isOdd("42")); // Error: Please Enter Numbers Only! // [!code error]
console.log(isOdd(41)); // returns true