Skip to main content

Built and signed on GitHub Actions

🕵️‍♀️ Predicate utilities.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.3.2)
type alias IsPrototypeOfFunction

Function that checks if a given object is of given object type (checks if the prototype matches Expected).

Type Parameters

Expected extends object

Expected object type.

Definition

(object: unknown) => object is Expected

Add Package

deno add jsr:@coven/predicates

Import symbol

import { type IsPrototypeOfFunction } from "@coven/predicates";

---- OR ----

Import directly with a jsr specifier

import { type IsPrototypeOfFunction } from "jsr:@coven/predicates";

Add Package

npx jsr add @coven/predicates

Import symbol

import { type IsPrototypeOfFunction } from "@coven/predicates";

Add Package

yarn dlx jsr add @coven/predicates

Import symbol

import { type IsPrototypeOfFunction } from "@coven/predicates";

Add Package

pnpm dlx jsr add @coven/predicates

Import symbol

import { type IsPrototypeOfFunction } from "@coven/predicates";

Add Package

bunx jsr add @coven/predicates

Import symbol

import { type IsPrototypeOfFunction } from "@coven/predicates";