Skip to main content
Go to Latest
namespace Value
import { Value } from "https://deno.land/x/openbox@1.1.8/deps.ts";

Functions to perform structural operations on JavaScript values

Functions

Casts a value into a given type. The return value will retain as much information of the original value as possible.

Returns true if the value matches the given type and references

Returns a structural clone of the given value

Converts any type mismatched values to their target type if a reasonable conversion is possible

Creates a value from the given type and references

Decodes a value or throws if error

Returns edits to transform the current value into the next value

Encodes a value or throws if error

Returns true if left and right values are structurally equal

Returns an iterator for each error in this value.

Returns a FNV1A-64 non cryptographic hash of the given value

Performs a deep mutable value assignment while retaining internal references.

Returns a new value with edits applied to the given value