Socket
Socket
Sign inDemoInstall

to-boolean-x

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-boolean-x

Converts argument to a value of type Boolean.


Version published
Weekly downloads
4.8K
increased by41.19%
Maintainers
1
Weekly downloads
 
Created
Source

Travis status Dependency status devDependency status npm version

to-boolean-x

Converts argument to a value of type Boolean.

Version: 1.0.3
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'.

ParamTypeDescription
value*The value to be converted.

Example

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

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

Keywords

FAQs

Package last updated on 24 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc