Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.Router#forEach

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
method oak.Router.prototype.forEach
import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/service/deps.ts";
const { Router } = oak;

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]