klyn.Boolean.Boolean
constructor
public native Boolean(value: String) throws BadValueException
Description

Builds a Boolean from a textual representation.

Accepted values are true and false.

Throws
  • BadValueException if the input is not a valid Boolean.
Example
assert Boolean("true") == true
assert Boolean("false") == false