🧐 Predicate util functions
This package can be installed as a dependency or used directly.
🦕 In JS or deno:
import { isBoolean } from "https://esm.sh/@vangware/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
🌎 Or in the browser:
<script type="module">
import { isBoolean } from "https://esm.sh/@vangware/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
</script>
First:
# If you use npm
npm install @vangware/predicates
# If you use pnpm
pnpm add @vangware/predicates
# If you use yarn
yarn add @vangware/predicates
And then:
import { isBoolean } from "@vangware/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
Documentation is available HERE. It is auto-generated with typedoc based on the JSDocs and the types in the source. It shouldn't be necessary to read this. Code editors like VS Code integrate the documentation in the UI.
Changelog can be found HERE.
Test coverage can be found HERE.