Skip to main content
Module

x/fae/dissocPath.ts>dissocPath

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

Makes a shallow clone of an object obj, deleting value at at the given path. Note that this copies and flattens prototype properties onto the new object as well. All non-primitive properties are copied by reference.

 Fae.dissocPath(['a', 'b', 'c'], {a: {b: {c: 42}}}); //=> {a: {b: {}}}

type

DissocPath