is-eq-two

1.1.0 • Public • Published

is-eq-two

License: WTFPL

A simple module to test if a given object is number 2

Install

$ npm install is-eq-two

Usage

const is2 = require('is-eq-two');
 
is2(2);
// Returns true
 
is2(-1);
// Returns false
 
is2(null);
// Returns false
 
is2("2");
// Returns false
 

Tests

$ npm test

/is-eq-two/

    Package Sidebar

    Install

    npm i is-eq-two

    Weekly Downloads

    12

    Version

    1.1.0

    License

    WTFPL

    Unpacked Size

    3.38 kB

    Total Files

    6

    Last publish

    Collaborators

    • pethu