Newer Version Available

This content describes an older version of this product. View Latest

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.