Skip to main content

getBoolean

Retrieves a boolean value of the specified property in the object.

Signature

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

Parameters

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

Return value

Returns the value of the property.