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 Parameter | Description |
|---|---|
T | The type of the value. |
Parameters
| Parameter | Type | Description |
|---|---|---|
fn | (value) => T | The transformation function. |
Returns
Transformer<T>
A transformer that applies the supplied transformation function.