yesnt

1.1.2 • Public • Published

yesnt - find out whether the object is truthy or falsy

Keeping everything simple and minimalistic: only 1 function to use

    yesnt(null) //=> false
    yesnt(1) //=> true
    yesnt('') //=> false

    /* and many more use cases that help 
     understand the weird nature of JS... */

Good luck with using this package!

Package Sidebar

Install

npm i yesnt

Weekly Downloads

3

Version

1.1.2

License

MIT

Unpacked Size

744 B

Total Files

4

Last publish

Collaborators

  • ua2