Files
2023-08-01 13:49:46 +02:00
..
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00
2023-08-01 13:49:46 +02:00

Travis status Dependency status devDependency status npm version

to-boolean-x

Converts argument to a value of type Boolean.

Version: 1.0.1
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

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

var toBoolean = require('to-boolean-x');

toBoolean(null); // false
toBoolean(''); // false
toBoolean(1); // true
toBoolean('0'); // true