Skip to content

API reference / @localizer/transform / apply

Function: apply()

apply<T>(fn): Transformer<T>

Defined in: fn/generic/apply.ts:31

Applies a transformation to the localized value of a Localizable object.

Type Parameters

Type ParameterDescription
TThe type of the value.

Parameters

ParameterTypeDescription
fn(value) => TThe transformation function.

Returns

Transformer<T>

A transformer that applies the supplied transformation function.