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

x/rambda/mod.ts>bind

Faster and smaller alternative to Ramda
Latest
function bind
import { bind } from "https://deno.land/x/rambda@9.3.0/mod.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>