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

x/scaffold/tests/deps.ts>returnsArg

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