Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/scaffold/tests/deps.ts>returnsArgs

scaffold your next project with style and ๐Ÿ’—
Latest
function returnsArgs
import { returnsArgs } from "https://deno.land/x/scaffold@0.3.0/tests/deps.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