Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 443 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 443 Bytes

Type-check utils

This package provides a set of utilities to check the type of values.

How to use

  1. Install the package and its required peer dependencies:
pnpm add @jpapini/type-check
  1. Use the functions in your code:
import { isString } from '@jpapini/type-check';

console.log(isString('hello')); // true
console.log(isString(42)); // false

Author