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

x/oak/utils/clone_state.ts>cloneState

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function cloneState
import { cloneState } from "https://deno.land/x/oak@v17.1.2/utils/clone_state.ts";

Clones a state object, skipping any values that cannot be cloned.

Type Parameters

S extends Record<string, any>