Module

x/rambda/mod.ts>bind

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