This package is meant to provide helpers to handle data with unknown or ambiguous types in both Javascript and Typescript, providing both boolean return types and Typescript assertions. It also provides some additional helpers to handle common use cases, like checking if a variable is "empty", has a certain function, has a special meaning, etc.
You can install the package via npm (or another tool of your choosing):
npm install @hexafuchs/what.jsCheckout the documentation at https://hexafuchs.github.io/what.js/.
import { isNull } from "@hexafuchs/what.js";
console.log(isNull(null));npm run testnpm run buildnpm run devnpm run lint:scripts
npm run lint:stylesPlease see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.