npm.io
2.2.6 • Published 2 years ago

@vangware/predicates

Licence
MIT
Version
2.2.6
Deps
2
Size
38 kB
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated
@vangware/predicates

Coverage License NPM Version Open Issues Size

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>

Keywords