Skip to main content
Module

x/rambda/index.d.ts>apply

Faster and smaller alternative to Ramda
Go to Latest
function apply
import { apply } from "https://deno.land/x/rambda@v7.0.1/index.d.ts";

It applies function fn to the list of arguments.

This is useful for creating a fixed-arity function from a variadic function. fn should be a bound function if context is significant.

Type Parameters

optional
T = any

Parameters

fn: (...args: any[]) => T
args: any[]

Type Parameters

optional
T = any

Parameters

fn: (...args: any[]) => T

Returns

(args: any[]) => T