is-it-true
v1.0.1
Published
Verify if a value is true or false. Easy, no?
Downloads
1
Readme
Is it true?
"Is it true" is a package that helps you verify if a value is true or false.
Installing
Just npm install is-it-true
and then import into your code like this:
import isTrue from 'is-it-true';
Usage
"WOW THATS EASY MY MAN" Of course it is. I've created it to be as easy as possible, so I can help every other developers in the world.
import isTrue from 'is-it-true';
isTrue(true); // returns true. You're right my man!
isTrue(false); // returns false. My condolences...
isTrue(123); // Numbers are always right, so it'll return true.
isTrue("String"); // Idk... returns false.