Important
This library is deprecated. Go to coven.engineering to see what we are doing nowadays.
🧐 Predicate util functions
Install @vangware/predicates as a dependency:
pnpm add @vangware/predicates
# or
npm install @vangware/predicates
# or
yarn add @vangware/predicatesImport it and use it:
import { isBoolean } from "@vangware/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // falseImport @vangware/predicates using the npm: prefix, and use it directly:
import { isBoolean } from "npm:@vangware/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // falseImport @vangware/predicates using esm.sh, and use it directly:
<script type="module">
import { isBoolean } from "https://esm.sh/@vangware/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
</script>- 📝 Documentation: TypeDoc generated documentation.
- ⏳ Changelog: List of changes between versions.
- ✅ Tests Coverage: Coveralls page with tests coverage.