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

x/rambda/index.d.ts>modify

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

Type Parameters

K extends PropertyKey
T

Parameters

prop: K
fn: (value: T) => T

Returns

<U extends Record<K, T>>(object: U) => U

Type Parameters

U
K extends keyof U

Parameters

prop: K
fn: (value: U[K]) => U[K]
object: U

Type Parameters

K extends PropertyKey

Returns

{ <T>(fn: (value: T) => T): <U extends Record<K, T>>(object: U) => U; <T, U extends Record<K, T>>(fn: (value: T) => T, object: U): U; }