is-eq-two
Version:
Returns true if the given number is 2, false otherwise.
35 lines (23 loc) • 458 B
Markdown
//img.shields.io/badge/License-WTFPL-brightgreen.svg)](http://www.wtfpl.net/about/)
A simple module to test if a given object is number 2
```bash
$ npm install is-eq-two
```
```js
const is2 = require('is-eq-two');
is2(2);
// Returns true
is2(-1);
// Returns false
is2(null);
// Returns false
is2("2");
// Returns false
```
```bash
$ npm test
```
[![License: WTFPL](https: