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

x/deno/cli/js/streams/shared-internals.ts>cloneValue

A modern runtime for JavaScript and TypeScript.
Go to Latest
function cloneValue
import { cloneValue } from "https://deno.land/x/deno@v0.30.0/cli/js/streams/shared-internals.ts";

Implement a method of value cloning that is reasonably close to performing StructuredSerialize(StructuredDeserialize(value)) from the HTML standard. Used by the internal readableStreamTee method to clone values for connected implementations.

Parameters

value: any