Cloning is idempotent at every depth: each frozen object and array is branded, so re-freezing a clone, or any nested
member extracted from it, returns the same reference rather than a fresh copy. A frozen member keeps its identity
even when reached through another path or nested into a new structure:
Deep operations on JSON-like objects and arrays.
Recursive Partial Views
Widen a JSON-like type into a subset view that accepts partial literals at every nesting level:
Tuple arity, element labels, variadic segments, and index signatures are preserved while every record key is relaxed to
readonlyand optional.Deep Equality
Compare nested structures for structural equality:
Deep Freezing
Create deeply frozen structures that prevent all mutations:
Stable Identity
Cloning is idempotent at every depth: each frozen object and array is branded, so re-freezing a clone, or any nested member extracted from it, returns the same reference rather than a fresh copy. A frozen member keeps its identity even when reached through another path or nested into a new structure:
Type-Safe Freezing
Validate and freeze with optional type guards: