Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Latest commit

 

History

History
81 lines (58 loc) · 2.31 KB

README.md

File metadata and controls

81 lines (58 loc) · 2.31 KB

This repository's code was moved to lou.codes.


Predicates by Vangware

Coverage License NPM Version Open Issues

🧐 Predicate util functions

Usage

📦 Node

Install @vangware/predicates as a dependency:

pnpm add @vangware/predicates
# or
npm install @vangware/predicates
# or
yarn add @vangware/predicates

Import it and use it:

import { isBoolean } from "@vangware/predicates";

isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false

🦕 Deno

Import @vangware/predicates using the npm: prefix, and use it directly:

import { isBoolean } from "npm:@vangware/predicates";

isBoolean(true); // true
isBoolean(false); // true
isBoolean(undefined); // false

🌎 Browser

Import @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>

Useful links