New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

iszero

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iszero

Test if given number is zero.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

iszero

Test if given thing is a number with a value of zero.

Usage

var isZero = require('iszero');

console.log( isZero(0) ); // true
console.log( isZero(1) ); // false

// special feature: also works with non-numeric input
console.log( isZero(' ') ); // false!

Installation

With npm do:

$ npm install iszero

Contributions

Contributions are welcome, however PRs that are mostly stylistic or semantic in nature will not be accepted.

License

GPLv3

Keywords

zero

FAQs

Package last updated on 24 Mar 2016

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