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

x/bencodex/mod.ts>BencodexDictionary#[Symbol.iterator]

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
method BencodexDictionary.prototype.[Symbol.iterator]
import { BencodexDictionary } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

Gets an iterator which iterates over the key-value pairs in this dictionary. This method is equivalent to Dictionary.entries().

Returns

Iterator<readonly [Key, Value]>

An iterator which iterates over the key-value pairs in this dictionary.