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

x/frugal/dep/std/mock.ts>returnsArg

A frugal web framework
Go to Latest
function returnsArg
import { returnsArg } from "https://deno.land/x/frugal@0.3.0/dep/std/mock.ts";

Creates a function that returns one of its arguments.

Type Parameters

Arg
optional
Self = any

Parameters

idx: number

Returns

(this: Self, ...args: Arg[]) => Arg