nest badge

🦕 Object clone

Deno module for deep object clone

Deno kill-port is under MIT license.

Clone is available through:

Usage

import { clone } from "https://deno.land/x/object_clone@1.0.1/mod.ts";

const objA = {
  foo: {
    bar: "bar",
    barFn: () => "bar",
  },
};

const objAClone = clone(objA);

Test

deno test

Format code

deno fmt

Resources