1.0.2 • Published 4 years ago

@cromarmot/is-number-one v1.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

isNumberOne

License: GPL v3

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