Home > @i2analyze/notebook-sdk > data > IFormatter > formatValueOrUndefined
data.IFormatter.formatValueOrUndefined() method
Formats a value as a string, or returns undefined
if the value is undefined
.
Signature:
formatValueOrUndefined(value: PropertyValue | undefined, options?: IFormattingOptions): string | undefined;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
value | PropertyValue | undefined | The value to format. |
options | IFormattingOptions | (Optional) A set of options that control some aspects of the format. |
Returns:
string | undefined
A string representation of the formatted value, or undefined
if value
is undefined
.