1.0.4 • Published 2 years ago
is-104 v1.0.4
is-104
Returns true if the given number is exactly 104.
Install
Install with npm:
$ npm install --save is-104
Usage
Works with strings or numbers.
const is104 = require('is-104');
console.log(is104(1)); //=> false
console.log(is104(42)); //=> false
console.log(is104('42')); //=> false
console.log(is104(-18)); //=> false
console.log(is104(1936.27)); //=> false
console.log(is104('three')); //=> false
console.log(is104(104)); //=> true
console.log(is104(1.04e2)); //=> true
console.log(is104('104')); //=> true
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test