to-boolean-x

WebJar for to-boolean-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

to-boolean-x
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

to-boolean-x
WebJar for to-boolean-x
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/to-boolean-x

Download to-boolean-x

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/to-boolean-x/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>to-boolean-x</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/to-boolean-x/
implementation 'org.webjars.npm:to-boolean-x:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/to-boolean-x/
implementation ("org.webjars.npm:to-boolean-x:1.0.3")
'org.webjars.npm:to-boolean-x:jar:1.0.3'
<dependency org="org.webjars.npm" name="to-boolean-x" rev="1.0.3">
  <artifact name="to-boolean-x" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='to-boolean-x', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "to-boolean-x" % "1.0.3"
[org.webjars.npm/to-boolean-x "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

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

import toBoolean from 'to-boolean-x';

console.log(toBoolean(null)); // false
console.log(toBoolean('')); // false
console.log(toBoolean(1)); // true
console.log(toBoolean('0')); // true

Versions

Version
1.0.3
1.0.1