Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
/ is-zero Public archive
forked from i-voted-for-trump/is-odd

is-odd, is-even exist, right?

License

Notifications You must be signed in to change notification settings

molnarzs/is-zero

 
 

Repository files navigation

is-zero NPM version NPM monthly downloads NPM total downloads Linux Build Status

Returns true if the given number is zero.

Install

Install with npm:

$ npm install --save is-zero

Usage

Works with strings or numbers.

const isZero = require('is-zero');

console.log(isZero('0')); //=> true
console.log(isZero(2)); //=> false

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Certainly, this repo is a joke!

About

is-odd, is-even exist, right?

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%