Utility function for custom functions. Cast a value as a Boolean, unwrapping objects using their valueOf() methods. Also accepts 'true' and 'false'. Throws a RangeError for invalid inputs.
valueOf()
'true'
'false'
RangeError
Utility function for custom functions. Cast a value as a Boolean, unwrapping objects using their
valueOf()
methods. Also accepts'true'
and'false'
. Throws aRangeError
for invalid inputs.