text: "use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}/* Any */function is(a,b){var c={string:"string",number:"number",boolean:"boolean",object:"object",array:"object",function:"function"},d=!1;if(c.hasOwnProperty(b))d=_typeof(a)==c[b],"array"===b&&(d=Array.isArray(a));else{if("date"===b)return a instanceof Date;if("falsy"===b)return!a}return d}/* Date */ /* Number */ /* String */Date.prototype.isEqual=function(a){return this==a},Date.prototype.isGreaterThan=function(a){return this>a},Date.prototype.isLessThan=function(a){return this<a},Date.prototype.inRange=function(a,b){return a<=this&&this<=b},Number.prototype.isEqual=function(a){return this==a},Number.prototype.isGreaterThan=function(a){return this>a},Number.prototype.isLessThan=function(a){return this<a},Number.prototype.isIn=function(a){var b=!1;return Array.isArray(a)&&(b=a.includes(this)),b},Number.prototype.inRange=function(a,b){return a<=this&&this<=b},String.prototype.isEqual=function(a){return 0===this.localeCompare(a)},String.prototype.isGreaterThan=function(a){return this.length>a},String.prototype.isLessThan=function(a){return this.length<a},String.prototype.isAlpha=function(){return /^[a-z\s]+$/i.test(this)},String.prototype.isNum=function(){return /^[0-9]+$/.test(this)},String.prototype.isAlnum=function(){return /^[a-z0-9\s]+$/i.test(this)},String.prototype.isPhone=function(){return /^[+]?[(]?[0-9]{3,4}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{1,8}$/im.test(this)},String.prototype.isEmail=function(){return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(this)},String.prototype.isEmpty=function(){return 0===this.length},String.prototype.isLength=function(a){return this.length===a},String.prototype.inLength=function(a,b){return a<=this.length&&this.length<=b},String.prototype.isIn=function(a){if(Array.isArray(a))return a.includes(this)},module.exports=is;