@lou.codes/predicates
v2.0.13
Published
π§ Predicate util functions
Downloads
671
Maintainers
Readme
π§ Predicate util functions
Usage
π¦ Node
Install @lou.codes/predicates
as a dependency:
pnpm add @lou.codes/predicates
# or
npm install @lou.codes/predicates
# or
yarn add @lou.codes/predicates
Import it and use it:
import { isBoolean } from "@lou.codes/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
π¦ Deno
Import @lou.codes/predicates
using the npm:
prefix, and use it directly:
import { isBoolean } from "npm:@lou.codes/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
π Browser
Import @lou.codes/predicates
using esm.sh, and use it directly:
<script type="module">
import { isBoolean } from "https://esm.sh/@lou.codes/predicates";
isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false
</script>
Useful links
- π Documentation: TypeDoc generated documentation.
- β³ Changelog: List of changes between versions.
- β Tests Coverage: Coveralls page with tests coverage.