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

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

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

Creates a function that returns the iterable values. Any iterable values that are errors will be thrown.

Type Parameters

Return
optional
Self = any
optional
Args extends unknown[] = any[]

Parameters

values: Iterable<Return | Error>

Returns

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