This package provides a set of utilities to check the type of values.
- Install the package and its required peer dependencies:
pnpm add @jpapini/type-check
- Use the functions in your code:
import { isString } from '@jpapini/type-check';
console.log(isString('hello')); // true
console.log(isString(42)); // false
- Julien Papini julien.papini@gmail.com