1.0.4 • Published 5 years ago
ifis v1.0.4
IfIs
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.