diff --git a/dist/isset.min.js b/dist/isset.min.js index 108d33a..8fa9f46 100644 --- a/dist/isset.min.js +++ b/dist/isset.min.js @@ -1 +1 @@ -window.isset=function(t,n){var e,r;if(n){r=!0;try{e=t instanceof n}catch(t){e=!1;try{n=n.toLowerCase()}catch(t){r=!1}}}else r=!1;return null!=t&&null!=t&&(!r||typeof t===n||e)&&(!r||!("string"==n)||""!=t&&" "!=t)}; \ No newline at end of file +window.isset=function(t,n){var e,r;if(n){r=!0;try{e=t instanceof n}catch(t){e=!1;try{n=n.toLowerCase()}catch(t){r=!1}}}else r=!1;return null!=t&&null!=t&&(!r||typeof t===n||e)&&(!r||"string"!=n||""!=t&&" "!=t)}; \ No newline at end of file diff --git a/dist/module.js b/dist/module.js index 1414a95..762fbac 100644 --- a/dist/module.js +++ b/dist/module.js @@ -1 +1 @@ -module.exports=function isset(t,e){var n,r;if(e){r=!0;try{n=t instanceof e}catch(t){n=!1;try{e=e.toLowerCase()}catch(t){r=!1}}}else r=!1;return null!=t&&null!=t&&(!r||typeof t===e||n)&&(!r||!("string"==e)||""!=t&&" "!=t)}; \ No newline at end of file +module.exports=function isset(t,e){var n,r;if(e){r=!0;try{n=t instanceof e}catch(t){n=!1;try{e=e.toLowerCase()}catch(t){r=!1}}}else r=!1;return null!=t&&null!=t&&(!r||typeof t===e||n)&&(!r||"string"!=e||""!=t&&" "!=t)}; \ No newline at end of file diff --git a/src/main.js b/src/main.js index cd32004..d49a24a 100644 --- a/src/main.js +++ b/src/main.js @@ -24,7 +24,7 @@ function isset(test,type) { test != undefined && ( !_check || (typeof test === type || _instance) ) && ( - !_check || !(type == 'string') || (test != '' && test != ' ') + !_check || (type != 'string') || (test != '' && test != ' ') ) - ) + ); }