to-boolean-x
Converts argument to a value of type Boolean.
module.exports(value)
⇒ boolean
⏏
The abstract operation ToBoolean converts argument to a value of type Boolean.
Kind: Exported function
Returns: boolean
- 'true' if value is truthy; otherwise 'false'.
Param | Type | Description |
---|---|---|
value | * |
The value to be converted. |
Example
; console; // falseconsole; // falseconsole; // trueconsole; // true