1.0.4 • Published 6 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: falseAll Variables
if.isNum(22) // Output: True
if.isNum('hey') // Output: FalseChecks for a number.
if.isStr(312) // Output: False
if.isStr('hey') // Output: TrueChecks for a string.
if.isObj(['hi', '22']) // Output: True
if.isObj(22) // Output: FalseChecks for an object.
if.isBool(['hi', '22']) // Output: False
if.isBool(true) // Output: TrueChecks for a boolean.
if.isFunc(['hi', '22']) // Output: False
if.isFunc('hi') // Output: False
if.isFunc(ifis.isFunc(class C {})) // Output: TrueChecks for a function.