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

x/rambda/immutable.d.ts>bind

Faster and smaller alternative to Ramda
Latest
function bind
import { bind } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

Creates a function that is bound to a context.

Type Parameters

F extends AnyFunction
T

Parameters

fn: F
thisObj: T

Returns

(...args: Parameters<F>) => ReturnType<F>

Type Parameters

F extends AnyFunction
T

Returns

(thisObj: T) => (...args: Parameters<F>) => ReturnType<F>