Skip to main content
Deno 2 is finally here 🎉️
Learn more
method Router.prototype.forEach
Re-export
import { Router } from "https://deno.land/x/ptero@3.0/Ptero/deps.ts";

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

Parameters

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