In the web project include pp-is.js with:
<script src="https://cdn.jsdelivr.net/npm/pp-is@latest/pp-is.min.js" ></script>
Or
npm i pp-is --save
Checks if value is classified as an Array object.
Checks if value is either true or false.
Checks if value is a Date
Checks if value is a DOM element.
Checks if value is a Function.
Checks if value is a Null.
Checks if value is a Number.
Checks if value is classified as an Object.
Checks if value is a string.
Checks if value is a undefined.
Checks if value is a valid email.
Checks if value is a valid Number from String.
Checks if value is a RegExp.
Checks if value is a valid Url.
Checks if value is a valid NodeList.
Checks if value is a valid HTMLCollection.
var value = "string...";
if( ppIs.isString(value) ){
// Enter your code here
}
var value = "string...";
ppIs.isString( value , function( val ){
// Enter your code here
})