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}