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

x/netzo/deps/std/testing/mock.ts>returnsArg

Deno-powered framework for building business web apps
Go to Latest
function returnsArg
import { returnsArg } from "https://deno.land/x/netzo@0.3.91/deps/std/testing/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