UNPKG

is-or-not

Version:

A Set of `is` and `isNot` functions in JavaScript checking and testing on objects and types

4,636 lines (1,218 loc) 54.3 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Global - isOrNot</title> <meta name="description" content="A Set of `is` and `isNot` functions in JavaScript checking and testing on objects and types" /> <meta name="keywords" content="javascript, utils, is, isnot, types, test, check, testing, type check, js, library" /> <meta name="keyword" content="javascript, utils, is, isnot, types, test, check, testing, type check, js, library" /> <meta property="og:title" content="isOrNot"/> <meta property="og:type" content="website"/> <meta property="og:image" content=""/> <meta property="og:site_name" content="isOrNot"/> <meta property="og:url" content="https://github.com/AlaeddineMessadi/is-or-not"/> <script src="scripts/prettify/prettify.js"></script> <script src="scripts/prettify/lang-css.js"></script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc.css"> <script src="scripts/nav.js" defer></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <input type="checkbox" id="nav-trigger" class="nav-trigger" /> <label for="nav-trigger" class="navicon-button x"> <div class="navicon"></div> </label> <label for="nav-trigger" class="overlay"></label> <nav class="wrap"> <input type="text" id="nav-search" placeholder="Search" /> <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/AlaeddineMessadi/is-or-not" target="_blank" class="menu-item" id="website_link" >Github</a></h2><h3>Global</h3><ul><li><a href="global.html#isArray">isArray</a></li><li><a href="global.html#isBoolean">isBoolean</a></li><li><a href="global.html#isDate">isDate</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#isError">isError</a></li><li><a href="global.html#isFunction">isFunction</a></li><li><a href="global.html#isNotArray">isNotArray</a></li><li><a href="global.html#isNotBoolean">isNotBoolean</a></li><li><a href="global.html#isNotDate">isNotDate</a></li><li><a href="global.html#isNotEmpty">isNotEmpty</a></li><li><a href="global.html#isNotError">isNotError</a></li><li><a href="global.html#isNotFunction">isNotFunction</a></li><li><a href="global.html#isNotNull">isNotNull</a></li><li><a href="global.html#isNotNullOrUndefined">isNotNullOrUndefined</a></li><li><a href="global.html#isNotNumber">isNotNumber</a></li><li><a href="global.html#isNotObject">isNotObject</a></li><li><a href="global.html#isNotPrimitive">isNotPrimitive</a></li><li><a href="global.html#isNotRegExp">isNotRegExp</a></li><li><a href="global.html#isNotString">isNotString</a></li><li><a href="global.html#isNotSymbol">isNotSymbol</a></li><li><a href="global.html#isNotUndefined">isNotUndefined</a></li><li><a href="global.html#isNull">isNull</a></li><li><a href="global.html#isNullOrUndefined">isNullOrUndefined</a></li><li><a href="global.html#isNumber">isNumber</a></li><li><a href="global.html#isObject">isObject</a></li><li><a href="global.html#isPrimitive">isPrimitive</a></li><li><a href="global.html#isRegExp">isRegExp</a></li><li><a href="global.html#isString">isString</a></li><li><a href="global.html#isSymbol">isSymbol</a></li><li><a href="global.html#isUndefined">isUndefined</a></li><li><a href="global.html#utils">utils</a></li></ul> </nav> <div id="main"> <h1 class="page-title">Global</h1> <section> <header> <h2> </h2> </header> <article> <div class="container-overview"> <dl class="details"> </dl> </div> <h3 class="subsection-title">Members</h3> <h4 class="name" id="utils"><span class="type-signature">(constant) </span>utils<span class="type-signature"></span></h4> <p class="summary"><p>Declare utils</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line34">line 34</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Declare utils</p> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="isArray"><span class="type-signature"></span>isArray<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type Array</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line164">line 164</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type Array</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type Array</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isBoolean"><span class="type-signature"></span>isBoolean<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type Boolean</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line36">line 36</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type Boolean</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type boolean</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isDate"><span class="type-signature"></span>isDate<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type 'Date'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line236">line 236</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type 'Date'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type Date</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isEmpty"><span class="type-signature"></span>isEmpty<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is Empty</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line290">line 290</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is Empty</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is Empty</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isError"><span class="type-signature"></span>isError<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is Error</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line218">line 218</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is Error</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is Error</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isFunction"><span class="type-signature"></span>isFunction<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type 'function'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line254">line 254</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type 'function'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type Undefined</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotArray"><span class="type-signature"></span>isNotArray<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'Array'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line173">line 173</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'Array'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Array</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotBoolean"><span class="type-signature"></span>isNotBoolean<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type Boolean</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line46">line 46</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type Boolean</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type boolean</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotDate"><span class="type-signature"></span>isNotDate<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'date'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line245">line 245</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'date'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Date</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotEmpty"><span class="type-signature"></span>isNotEmpty<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not Empty</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line305">line 305</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not Empty</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not Empty</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotError"><span class="type-signature"></span>isNotError<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not Error</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line227">line 227</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not Error</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not an Error</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotFunction"><span class="type-signature"></span>isNotFunction<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'function'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line263">line 263</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'function'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Undefined</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotNull"><span class="type-signature"></span>isNotNull<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'null'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line118">line 118</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'null'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Null</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotNullOrUndefined"><span class="type-signature"></span>isNotNullOrUndefined<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not null or undefined</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line155">line 155</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not null or undefined</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not null or undefined</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotNumber"><span class="type-signature"></span>isNotNumber<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'boolean'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line64">line 64</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'boolean'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Boolean</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotObject"><span class="type-signature"></span>isNotObject<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'object'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line191">line 191</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'object'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Object</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotPrimitive"><span class="type-signature"></span>isNotPrimitive<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not a primitive type</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line209">line 209</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not a primitive type</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not a primitive type</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotRegExp"><span class="type-signature"></span>isNotRegExp<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'RegExp'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line281">line 281</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'RegExp'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type RegExp</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotString"><span class="type-signature"></span>isNotString<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'string'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line82">line 82</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'string'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type String</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotSymbol"><span class="type-signature"></span>isNotSymbol<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'Symbol'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line100">line 100</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'Symbol'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Symbol</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNotUndefined"><span class="type-signature"></span>isNotUndefined<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'undefined'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line137">line 137</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'undefined'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Undefined</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNull"><span class="type-signature"></span>isNull<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is not type 'null'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line109">line 109</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is not type 'null'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is not type Null</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNullOrUndefined"><span class="type-signature"></span>isNullOrUndefined<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is null or undefined</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line146">line 146</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is null or undefined</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is null or undefined</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isNumber"><span class="type-signature"></span>isNumber<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type 'boolean'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line55">line 55</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type 'boolean'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type Boolean</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isObject"><span class="type-signature"></span>isObject<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type 'object'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line182">line 182</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type 'object'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type Object</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isPrimitive"><span class="type-signature"></span>isPrimitive<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is a primitive type</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line200">line 200</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is a primitive type</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is a primitive type</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isRegExp"><span class="type-signature"></span>isRegExp<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type 'RegExp'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line272">line 272</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type 'RegExp'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last"><p>value to be test</p></td> </tr> </tbody> </table> <h5>Returns:</h5> <div class="param-desc"> <p>return true when value is type RegExp</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="isString"><span class="type-signature"></span>isString<span class="signature">(arg)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <p class="summary usertext"><p>Check if a given argument is type 'string'</p>.</p> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line73">line 73</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Check if a given argument is type 'string'</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arg</code></td> <td class="type"> <span class="param-type">*</span> </td>