Skip to main content
Module

x/fae/mod.ts>assoc

A functional module for Deno inspired from Ramda.
Latest
variable assoc
import { assoc } from "https://deno.land/x/fae@v1.1.1/mod.ts";

Makes a shallow clone of obj, setting or overriding the specified property prop with the given val. All non-primitive properties are copied by reference.

 Fae.assoc('c', 3, {a: 1, b: 2}); //=> {a: 1, b: 2, c: 3}

type

Assoc