Page MenuHomeSealhub

get-field-value-string.ts
No OneTemporary

Authored By
Unknown
Size
496 B
Referenced Files
None
Subscribers
None

get-field-value-string.ts

/**
* Helper function to extract string value from a field value.
* Since TextValue extends String and all FieldValue types implement toString(),
* we can simply use toString() for all values.
*
* @param value - The value from item.get() which might be a FieldValue object or a primitive
* @returns The string representation of the value
*/
export function getFieldValueString(value: any): string {
if (value === null || value === undefined) {
return "";
}
return value.toString();
}

File Metadata

Mime Type
application/javascript
Expires
Sat, Nov 7, 17:35 (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1182044
Default Alt Text
get-field-value-string.ts (496 B)

Event Timeline