Skip to main content

getString

Retrieves a string value of the specified property in the object

Signature​

getString(object: {} | undefined, property: string, default?: boolean): string

Parameters​

NameTypeOptionalDescription
object{} | undefinedNoReference to the object.
propertystringNoName of the property.
defaultstringYesSpecifies the default value.

Return value​

Returns the value of the property.