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