Module

x/rambda/mod.ts>bind

Faster and smaller alternative to Ramda
Go to Latest
function bind
import { bind } from "https://dotland.deno.dev/x/rambda@v9.2.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>