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

x/danet/src/deps.ts>Router#forEach

The most mature backend framework for Deno
Go to Latest
method Router.prototype.forEach
import { Router } from "https://deno.land/x/danet@1.7.4/src/deps.ts";

Iterate over the routes currently added to the router, calling the callback function for each value.

Parameters

callback: (
value1: Route<string>,
value2: Route<string>,
router: this,
) => void
optional
thisArg: any = [UNSUPPORTED]