Skip to content

Generate a function to check if it is X of type number.

License

Notifications You must be signed in to change notification settings

r3b311i0n/isX-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm i -g isx-cli

Usage

isx-cli 9

Output

is9.js
'use strict';

module.exports = function isX(operator) {
    const X = 9;
    if (typeof operator == 'number') {
        return operator === X;
    }
    else {
        return false;
    }
};
const isNine = require('./is9');
// import * as isNine from './is9';

isNine(9); // => true

isNine('nine'); // => false

isNine(100); // => false

isNine(Symbol(9)); // => false

About

Generate a function to check if it is X of type number.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published