yesnt
v1.1.2
Published
A tool to help finally distinguish between truthy and falsy objects.
Downloads
11
Readme
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!