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

nest badge

🦕 Object clone

Deno module for deep object clone

Deno kill-port is under MIT license.

Object clone is available through:

Usage

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

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

const objAClone = clone(objA);

Test

deno test

Format code

deno fmt

Resources