import { deepClone } from "https://deno.land/x/simple_utility@v2.0.0/mod.ts";
structuredClone()
with argument type added.
Examples
Example 1
Example 1
const clone = deepClone({
aaa: {
bbb: true
}
});
Type Parameters
T extends Opt<T>
Parameters
data: T
optional
transfers: (Transferable | ArrayBufferView)[]