UNPKG

is-eq-zero

Version:

Returns true if the given number is 0, false otherwise.

35 lines (23 loc) 461 B
## is-eq-zero [![License: WTFPL](https://img.shields.io/badge/License-WTFPL-brightgreen.svg)](http://www.wtfpl.net/about/) A simple module to test if a given object is number 0 ## Install ```bash $ npm install is-eq-zero ``` ## Usage ```js const is0 = require('is-eq-zero'); is0(0); // Returns true is0(-1); // Returns false is0(null); // Returns false is0("0"); // Returns false ``` ## Tests ```bash $ npm test ```