CroMarmot / isNumberOne

isNumberOne is a low efficiency library to test if the given number is 1.

Home Page:https://www.npmjs.com/package/@cromarmot/is-number-one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isNumberOne

License: GPL v3

CircleCI

isone is a low efficiency library to test if the given number is 1 implement with Unit function.

ins meme

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

References

Unit_function

Möbius_inversion_formula

About

isNumberOne is a low efficiency library to test if the given number is 1.

https://www.npmjs.com/package/@cromarmot/is-number-one


Languages

Language:JavaScript 100.0%