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

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

Deno-powered framework for building business web apps
Go to Latest
function returnsArgs
import { returnsArgs } from "https://deno.land/x/netzo@0.3.91/deps/std/testing/mock.ts";

Creates a function that returns its arguments or a subset of them. If end is specified, it will return arguments up to but not including the end.

Type Parameters

Args extends unknown[]
optional
Self = any

Parameters

optional
start = [UNSUPPORTED]
optional
end: number

Returns

(this: Self, ...args: Args) => Args