Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
variable spreadOver
import { spreadOver } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function.

Use closures and the spread operator (...) to map the array of arguments to the inputs of the function.

type

(fn: Function) => unknown