whaty

1.0.1 • Public • Published

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

/whaty/

    Package Sidebar

    Install

    npm i whaty

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.86 kB

    Total Files

    8

    Last publish

    Collaborators

    • finlg