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

x/rambda/index.d.ts>set

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

It returns a copied Object or Array with modified lens focus set to replacer value.

Parameters

lens: Lens<S, A>

Returns

{ (a: A): (obj: S) => S; (a: A, obj: S): S; }

Parameters

lens: Lens<S, A>
a: A

Returns

(obj: S) => S