Skip to content

finngreiter/whaty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whaty

is it truthy or falsy

example

npm i whaty

const whaty = require('whaty');

// inString
console.log(whaty.inString(true)); // 'truthy'
console.log(whaty.inString(NaN)); // 'falsy'

// inBoolean
console.log(whaty.inBoolean(true)); // true
console.log(whaty.inBoolean(NaN)); // false

api

whaty.inString(thing) returns String whaty.inBoolean(thing) returns Boolean

About

is it truthy or falsy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published