Skip to main content
variable unary
import { unary } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Creates a function that accepts up to one argument, ignoring any additional arguments.

Call the provided function, fn, with just the first argument given.

type

(fn: Function) => unknown