Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/websocket_broadcastchannel/src/fn.ts>equals

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
function equals
import { equals } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/src/fn.ts";

Checks if two items are the same, and the same type.

Parameters

items: { a: A; b: B; }

The first item.

Returns

items is items & { a: B; b: B; } & { a: A; b: A; }

Whether the two items are the same, and the same type.