Skip to content

Value Operations

Value provides two kinds of operations:

  • Static - pure functions on any value without a schema: Operations.clone, Hash.value, Value.diff, Operations.patch
  • Instance - schema-aware operations via jt.value.*: cast, clean, convert, create, instantiate

Methods

MethodKindDescription
Operations.clone / Hash.valueStaticDeep copy; deterministic hash
Value.diff / Operations.patchStaticStructural diff; apply a single operation
value.cast / clean / convertInstanceType coercion, stripping, conversion
value.createInstanceZero-value instance for blank form state

All examples use the bookstore domain.

See also

Released under the MIT License.