Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bencodex/mod.ts>isDictionary

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
function isDictionary
import { isDictionary } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

Checks if the given value is a Bencodex dictionary.

Parameters

value: unknown

The value to check.

Returns

value is Dictionary

true iff the given value is a Bencodex dictionary.