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

x/oak_nest/mod.ts>OriginRouter#forEach

Refer to nestjs to realize some common functions for Deno
Go to Latest
method OriginRouter.prototype.forEach
import { OriginRouter } from "https://deno.land/x/oak_nest@v2.0.0/mod.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]