Skip to content

Transformer.canTransform method

Transformer › canTransform

Determines if the transformer can transform the given value.

Signature:

canTransform(value: unknown, key: string): boolean

Parameters:

ParameterTypeDescription
valueunknownThe value to check.
keystringThe key of the value to check.

Returns: booleanA boolean indicating if the transformer can transform the value.