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

x/rambda/files/index.d.ts>modify

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