API
function extractValue<T>(field: FieldTree<T>): RawValue<T>;function extractValue<T>( field: FieldTree<T>, filter: ExtractFilter,): DeepPartial<RawValue<T>>;function extractValue<T>(field: FieldTree<T>): RawValue<T>;Utility to unwrap a FieldTree into its underlying raw value.
This function is recursive, so if the field tree represents an object or an array, the result will be an object or an array of the raw values of its children.
@paramfield
FieldTree<T>The field tree to extract the value from.
@returns
RawValue<T>function extractValue<T>(field: FieldTree<T>, filter: ExtractFilter): DeepPartial<RawValue<T>>;Utility to unwrap a FieldTree into its underlying raw value.
This function is recursive, so if the field tree represents an object or an array, the result will be an object or an array of the raw values of its children.
@paramfield
FieldTree<T>The field tree to extract the value from.
@paramfilter
ExtractFilterCriteria to include only fields matching certain state (dirty, touched, enabled).
@returns
DeepPartial<RawValue<T>>Jump to details