Skip to main content
Module

x/simple_utility/mod.ts>deepClone

Simplify processing for Deno.
Go to Latest
function deepClone
import { deepClone } from "https://deno.land/x/simple_utility@v2.0.2/mod.ts";

structuredClone() with argument type added.

Examples

Example 1

const clone = deepClone({
    aaa: {
        bbb: true
    }
});

Type Parameters

T extends Opt<T>

Parameters

data: T
optional
transfers: (Transferable | ArrayBufferView)[]