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

🦕 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.0/mod.ts";

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

const objAClone = clone(objA);

Test

deno test

Format code

deno fmt

Resources