getBooleanValue()

Coerces truthy and falsy values into a native boolean.

Signature 

getBooleanValue(Object val)

Parameters 

val: Type: Object. The object to check.

Returns 

Type: String Returns true if the object is truthy, or false otherwise.