ifis

1.0.4 • Public • Published

IfIs

Github NPM

Ifis is an npm package to see what the typeof is. Go to All Variables to see how you can use this package and what its uses are.

Usage

Getting Started

Okay so you wanna get started! So there are some easy steps to get started. First you should require the package;

const if = reqiure("Ifis");

Then, you are free to use ifis! For example:

const if = reqiure("Ifis");
 
console.log(if.isstr('epiccc')) // output: true
console.log(if.isstr(21)) // output: false

All Variables

if.isNum(22) // Output: True
if.isNum('hey') // Output: False

Checks for a number.

if.isStr(312) // Output: False
if.isStr('hey') // Output: True

Checks for a string.

if.isObj(['hi', '22']) // Output: True
if.isObj(22) // Output: False

Checks for an object.

if.isBool(['hi', '22']) // Output: False
if.isBool(true) // Output: True

Checks for a boolean.

if.isFunc(['hi', '22']) // Output: False
if.isFunc('hi') // Output: False
if.isFunc(ifis.isFunc(class C {})) // Output: True

Checks for a function.

Package Sidebar

Install

npm i ifis

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

3.47 kB

Total Files

3

Last publish

Collaborators

  • masontrv