UNPKG

json-timeline

Version:

Generate Interactive Timelines stored in JSON Advents with Tags.

106 lines (82 loc) 2.86 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Source: util/isType.js</title> <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-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Source: util/isType.js</h1> <section> <article> <pre class="prettyprint source linenums"><code>/** * @module isType */ /** * @function * @name isObject * @description Checks if the input is an object excluding null * @param {*} input Input Argument * @returns true if input is an object excluding null, false otherwise */ function isObject(input) { return input !== null &amp;&amp; typeof input === 'object'; } /** * @function * @name isNull * @description Checks if the input is null * @param {*} input Input Argument * @returns true if input is null, false otherwise */ function isNull(input) { return input === null; } /** * @function * @name isString * @description Checks if the input is a string * @param {*} input Input Argument * @returns true if input is a string, false otherwise */ function isString(input) { return typeof input === 'string'; } /** * @function * @name isNumber * @description Checks if the input is a number * @param {*} input Input Argument * @returns true if input is a number, false otherwise */ function isNumber(input) { return typeof input === 'number'; } module.exports = { isObject, isNull, isString, isNumber }; </code></pre> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-advents.html">advents</a></li><li><a href="module-compareDates.html">compareDates</a></li><li><a href="module-groupAdvents.html">groupAdvents</a></li><li><a href="module-index.html">index</a></li><li><a href="module-isType.html">isType</a></li><li><a href="module-json-timeline.html">json-timeline</a></li><li><a href="module-loadAdvents.html">loadAdvents</a></li><li><a href="module-renderAdvents.html">renderAdvents</a></li><li><a href="module-schemas.html">schemas</a></li><li><a href="module-sortAdvents.html">sortAdvents</a></li><li><a href="module-validateSchema.html">validateSchema</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Dec 14 2020 23:14:56 GMT-0500 (Eastern Standard Time) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>