Skip to main content
Module

x/cav/mod.ts>unpack

A server framework for Deno
Go to Latest
function unpack
import { unpack } from "https://deno.land/x/cav@0.0.14/mod.ts";

Unpacks a value packed with pack() into the original value. Referential equality will be restored on the output object. An error will be thrown if a value was packed with an unknown/unused packer.

Type Parameters

optional
T = unknown

Parameters

value: unknown
optional
packers: Packers