Skip to content

curtiszimmerman/iszero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Test if given thing is a number equal to zero.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published