npm i -g isx-cli
isx-cli 9
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