r3b311i0n / isX-cli

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:JavaScript 100.0%