isNumberOne
isone is a low efficiency library to test if the given number is 1 implement with Unit function.
install
yarn add @cromarmot/is-number-one
Usage
const isOne = require('@cromarmot/is-number-one');
isOne(1); // Returns true
isOne(-1); // Returns false
isOne(null); // Returns false
isOne("1"); // Returns false
Test
yarn test
Will take a long time