Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

cloneNode

Clone a node, and optionally its children.

function cloneNode<T extends Node>(node: T, recursive?: boolean): T;
§
cloneNode<T extends Node>(node: T, recursive?: boolean): T
[src]

§Type Parameters

§
T extends Node
[src]

§Parameters

§
node: T
[src]
§
recursive?: boolean optional
[src]

Clone child nodes as well.

§Return Type

§

A clone of the node.