Module

x/rambda/rambda.js>modify

Faster and smaller alternative to Ramda
Latest
function modify
import { modify } from "https://dotland.deno.dev/x/rambda@9.4.1/rambda.js";

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; }