chek
Version:
Minimal utility for checking types, working with arrays and objects.
842 lines (840 loc) • 37.9 kB
HTML
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Chek</title>
<meta name="description" content="Documentation for Chek">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/main.css">
<script async src="assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="assets/js/search.json" data-base=".">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="index.html" class="title">Chek</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<h1>Chek</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<div class="tsd-panel tsd-typography">
<p align="left">
<a href="http://github.com/origin1tech/chek"><img width="120" src="https://raw.githubusercontent.com/origin1tech/chek/master/assets/img/logo-120w.png"></a>
</p>
<p>What is Chek? Well we have a guy we call Chekov, as in "I can do zat Captain I can do zat". So we shortened it to "Chek". Hey there's a logger named after "Winston" right.</p>
<p>Anyway Chek is a slimmed down lib for common tasks like check if "is" a type or convert to a type. There are helpers for dealing with strings, converting objects to arrays and back (handy for Firebase type apis) and so on.</p>
<p>Nothing special just a nice little toolkit preventing the need for large libs like Lodash or Underscore (both great of course).</p>
<p>The end game is simple. Have about 90% or so coverage for common tasks preventing the need for a larger footprint.</p>
<p>Comes with 100% test coverage out of the gate. Some handy methods like push, splice, shift, unshfit and so on that handle immutability as well as other methods where applicable.</p>
<a href="#installation" id="installation" style="color: inherit; text-decoration: none;">
<h2>Installation</h2>
</a>
<pre><code class="language-sh"><span style="color: #000000">npm install chek -s</span>
</code></pre>
<a href="#usage" id="usage" style="color: inherit; text-decoration: none;">
<h2>Usage</h2>
</a>
<p><strong>Using Typescript</strong></p>
<pre><code class="language-ts"><span style="color: #AF00DB">import</span><span style="color: #000000"> </span><span style="color: #0000FF">*</span><span style="color: #000000"> </span><span style="color: #AF00DB">as</span><span style="color: #000000"> </span><span style="color: #001080">ck</span><span style="color: #000000"> </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">'chek'</span><span style="color: #000000">; </span><span style="color: #008000">// or import { isString, slugify } from 'chek';</span>
<span style="color: #0000FF">let</span><span style="color: #000000"> </span><span style="color: #001080">slug</span><span style="color: #000000"> = </span><span style="color: #A31515">'i can Do zAT'</span><span style="color: #000000">;</span>
<span style="color: #AF00DB">if</span><span style="color: #000000"> (</span><span style="color: #001080">ck</span><span style="color: #000000">.</span><span style="color: #795E26">isString</span><span style="color: #000000">(</span><span style="color: #001080">slug</span><span style="color: #000000">))</span>
<span style="color: #000000"> </span><span style="color: #001080">slug</span><span style="color: #000000"> = </span><span style="color: #001080">ck</span><span style="color: #000000">.</span><span style="color: #795E26">slugify</span><span style="color: #000000">(</span><span style="color: #001080">slug</span><span style="color: #000000">) </span><span style="color: #008000">// result: 'i-can-do-zat';</span>
</code></pre>
<p><strong>Using ES5</strong></p>
<pre><code class="language-js"><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">ck</span><span style="color: #000000"> = </span><span style="color: #795E26">require</span><span style="color: #000000">(</span><span style="color: #A31515">'chek'</span><span style="color: #000000">);</span>
<span style="color: #008000">// same as above.</span>
</code></pre>
<a href="#methods" id="methods" style="color: inherit; text-decoration: none;">
<h2>Methods</h2>
</a>
<p>Methods are broken into several categories. Some have only a method or two and we'll likely expand a little on some. Have <strong>any suggestions</strong> be sure to post an issue we're all ears. Not prideful help out we all win!</p>
<ul>
<li><strong>array</strong> - things like contains, containsAny, duplicates.</li>
<li><strong>from</strong> - things like fromEpoch, fromJSON, tryWrap & tryRequire.</li>
<li><strong>functions</strong> - noop and noopIf</li>
<li><strong>is</strong> - things like if isString, isBoolean, isFunction.</li>
<li><strong>object</strong> - things like get, set, clone, extend.</li>
<li><strong>string</strong> - things like lowercase, uppercase, slugify, padding, uuid.</li>
<li><strong>to</strong> - handles converting to a type like toBoolean, toRegExp.</li>
<li><strong>type</strong> - handles getting and casting types.</li>
</ul>
<p><strong>Please Note the following tables are here for convenience you should ALWAYS reference the "docs" below for updated method signatues, there's only so much time in the day.</strong></p>
<a href="#array" id="array" style="color: inherit; text-decoration: none;">
<h2>Array</h2>
</a>
<table>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>contains</td><td>arr: any[], val: any</td><td>boolean</td><td>Tests if array contains value.</td>
</tr>
<tr>
<td>duplicates</td><td>arr: any[], val: any, breakable?: boolean</td><td>number</td><td>Counts duplicates in array.</td>
</tr>
<tr>
<td>contains</td><td>arr: any[], compare: any[]</td><td>boolean</td><td>Tests if array contains any value.</td>
</tr>
<tr>
<td>keys</td><td>obj: {}</td><td>string[]</td><td>Returns an array of key names within an object.</td>
</tr>
<tr>
<td>flatten</td><td>...arr: any[]</td><td>any[]</td><td>Flattens nested arrays in immutable way.</td>
</tr>
<tr>
<td>first</td><td>arr: any[]</td><td>any</td><td>Returns first value in array without mutating.</td>
</tr>
<tr>
<td>last</td><td>arr: any[]</td><td>any</td><td>Returns last value in array without mutating.</td>
</tr>
<tr>
<td>orderBy</td><td>arr: any[], ...fields: IComparatorField[]</td><td>T[]</td><td>Orders array of objects by property name, falls back to .sort() for convenience.</td>
</tr>
<tr>
<td>pop</td><td>arr: any[]</td><td>IArrayResult</td><td>Pops value returns object w/o mutating w/ new array and val.</td>
</tr>
<tr>
<td>push</td><td>arr: any[], ...args: any[]</td><td>IArrayResult</td><td>Pushes value without mutating returning new array and val.</td>
</tr>
<tr>
<td>shift</td><td>arr: any[]</td><td>IArrayResult</td><td>Shifts value without mutating returning new array and val.</td>
</tr>
<tr>
<td>splice</td><td>arr: any[], start?: number, remove?: number, ...items: any[]</td><td>IArrayResult</td><td>Splices value without mutating returning new array and val and any inserted items.</td>
</tr>
<tr>
<td>unshift</td><td>arr: any[], ...items: any[]</td><td>IArrayResult</td><td>Unshifts inserting value returning new array and val.</td>
</tr>
</tbody>
</table>
<a href="#from" id="from" style="color: inherit; text-decoration: none;">
<h2>From</h2>
</a>
<table>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>fromEpoch</td><td>val: number, def?: Date</td><td>Date</td><td>Creates date from epoch.</td>
</tr>
<tr>
<td>fromJSON</td><td>val: string, def? T</td><td>T</td><td>Safely parses JSON.</td>
</tr>
</tbody>
</table>
<a href="#function" id="function" style="color: inherit; text-decoration: none;">
<h2>Function</h2>
</a>
<table>
<caption>CHEK FUNCTION</caption>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>noop</td><td>n/a</td><td>void</td><td>Non operation function.</td>
</tr>
<tr>
<td>noopIf</td><td>fn?: Function</td><td>Function</td><td>Returns non-operation function or provided function.</td>
</tr>
<tr>
<td>tryWrap</td><td>fn: Function, ...args: any[]</td><td>Function</td><td>Returns safely wrapped function.</td>
</tr>
<tr>
<td>tryRequire</td><td>name: string, def?: any</td><td>any</td><td>Safely requires node module.</td>
</tr>
<tr>
<td>tryRootRequire</td><td>name: string, def?: any</td><td>any</td><td>Safely requires Root node module.</td>
</tr>
</tbody>
</table>
<a href="#is" id="is" style="color: inherit; text-decoration: none;">
<h2>Is</h2>
</a>
<table>
<caption>CHEK IS</caption>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>isArray</td><td>val: any</td><td>boolean</td><td>Checks if is array.</td>
</tr>
<tr>
<td>isBoolean</td><td>val: any</td><td>boolean</td><td>Checks if is boolean.</td>
</tr>
<tr>
<td>isBrowser</td><td>override?: string</td><td>boolean</td><td>Checks if is browser.</td>
</tr>
<tr>
<td>isDate</td><td>val: any</td><td>boolean</td><td>Checks if is date.</td>
</tr>
<tr>
<td>isDebug</td><td>debugging?: boolean</td><td>boolean</td><td>Checks if is node debug mode.</td>
</tr>
<tr>
<td>isEmpty</td><td>val: any, comp: any, loose?: boolean</td><td>boolean</td><td>Checks if is empty.</td>
</tr>
<tr>
<td>isEqual</td><td>val: any</td><td>boolean</td><td>Checks if is equal.</td>
</tr>
<tr>
<td>isError</td><td>val: any, prop?: string</td><td>boolean</td><td>Checks if is an error.</td>
</tr>
<tr>
<td>isFloat</td><td>val: any</td><td>boolean</td><td>Checks if is a flot.</td>
</tr>
<tr>
<td>isFunction</td><td>val: any</td><td>boolean</td><td>Checks if is a function.</td>
</tr>
<tr>
<td>isInfinite</td><td>val: any</td><td>boolean</td><td>Checks if is infinite.</td>
</tr>
<tr>
<td>isInspect</td><td>inspecting?: boolean</td><td>boolean</td><td>Checks if is stated with --inspect or --inspect-brk.</td>
</tr>
<tr>
<td>isInteger</td><td>val: any</td><td>boolean</td><td>Checks if is an integer.</td>
</tr>
<tr>
<td>isNode</td><td>n/a</td><td>boolean</td><td>Checks if is running in node.</td>
</tr>
<tr>
<td>isNumber</td><td>val: any</td><td>boolean</td><td>Checks if is a number.</td>
</tr>
<tr>
<td>isMoment</td><td>val: any</td><td>boolean</td><td>Checks if is is a moment.</td>
</tr>
<tr>
<td>isObject</td><td>val: any</td><td>boolean</td><td>Checks if is an object.</td>
</tr>
<tr>
<td>isPlainObject</td><td>val: any</td><td>boolean</td><td>Checks if is an object literal.</td>
</tr>
<tr>
<td>isPromise</td><td>val: any, name?: string</td><td>boolean</td><td>Checks if is a Promise.</td>
</tr>
<tr>
<td>isRegExp</td><td>val: any</td><td>boolean</td><td>Checks if is a Regular Expression.</td>
</tr>
<tr>
<td>isString</td><td>val: any</td><td>boolean</td><td>Checks if is a string.</td>
</tr>
<tr>
<td>isSymbol</td><td>val: any</td><td>boolean</td><td>Checks if is a Symbol.</td>
</tr>
<tr>
<td>isTruthy</td><td>val: any</td><td>boolean</td><td>Checks if value is truthy.</td>
</tr>
<tr>
<td>isType</td><td>val: any, Type: any</td><td>boolean</td><td>Checks if is of specific class type.</td>
</tr>
<tr>
<td>isUndefined</td><td>val: any</td><td>boolean</td><td>Checks if is undefined.</td>
</tr>
<tr>
<td>isUnique</td><td>arr: any[], value: any</td><td>boolean</td><td>Checks if is unique value in array.</td>
</tr>
<tr>
<td>isValue</td><td>val: any</td><td>boolean</td><td>Checks if is not null and is defined.</td>
</tr>
</tbody>
</table>
<a href="#object" id="object" style="color: inherit; text-decoration: none;">
<h2>Object</h2>
</a>
<table>
<caption>CHEK OBJECT</caption>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>clone</td><td>obj: any, shallow?: boolean</td><td>T</td><td>Clones an object with shallow option.</td>
</tr>
<tr>
<td>del</td><td>obj: any, key: string | string[], immutable?: boolean</td><td>T</td><td>Removes properties from object using dot notation optional immutable result.</td>
</tr>
<tr>
<td>get</td><td>obj: any, key: string</td><td>T</td><td>Gets properties from object using dot notation.</td>
</tr>
<tr>
<td>extend</td><td>obj: any, ...args: any[]</td><td>T</td><td>Extends objects pass true as first arg for shallow extend.</td>
</tr>
<tr>
<td>has</td><td>obj: any, key: string</td><td>boolean</td><td>Checks if object has property path.</td>
</tr>
<tr>
<td>omit</td><td>obj: any, props: any | any[], immutable?: boolean</td><td>T</td><td>Omits values from string or arrays or omits from object by property name.</td>
</tr>
<tr>
<td>reverse</td><td>obj: any</td><td>T</td><td>Reverses an object { error: 0 } becomes { 0: 'error' }.</td>
</tr>
<tr>
<td>pick</td><td>obj: any, props: string | string[]</td><td>T</td><td>Picks properties from object by property name.</td>
</tr>
<tr>
<td>put</td><td>obj: any, key: string | string[], val: any, immutable?: boolean</td><td>T</td><td>Pushes value to a property if not an array converts to array.</td>
</tr>
<tr>
<td>set</td><td>obj: any, key: string | string[], val: any, immutable?: boolean</td><td>T</td><td>Sets object value using dot notation optional immutable result.</td>
</tr>
</tbody>
</table>
<a href="#string" id="string" style="color: inherit; text-decoration: none;">
<h2>String</h2>
</a>
<table>
<caption>CHEK STRING</caption>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>camelcase</td><td>val: string</td><td>string</td><td>Converts string to camelCase.</td>
</tr>
<tr>
<td>capitalize</td><td>val: string</td><td>string</td><td>Converts string to Capitalized.</td>
</tr>
<tr>
<td>decamelcase</td><td>val: string, separator?: string</td><td>string</td><td>Decamelizes a string to option/flag style with dashes.</td>
</tr>
<tr>
<td>lowercase</td><td>val: string</td><td>string</td><td>Converts string to lowercase.</td>
</tr>
<tr>
<td>padLeft</td><td>val: string, len: number, offset?: number | string, char?: string</td><td>string</td><td>Pads a string to the left.</td>
</tr>
<tr>
<td>padRight</td><td>val: string, len: number, offset?: number | string, char?: string</td><td>string</td><td>Pads a string to the right.</td>
</tr>
<tr>
<td>padValues</td><td>arr: string[], strategy?: string, offset?: number | string, char?: string</td><td>string[]</td><td>Pads and array of strings to the widest value.</td>
</tr>
<tr>
<td>split</td><td>val: string | string[], chars?: string | string[]</td><td>string[]</td><td>Splits a string by provided char to scans for known chars.</td>
</tr>
<tr>
<td>slugify</td><td>val: string</td><td>string</td><td>Slugifies a string.</td>
</tr>
<tr>
<td>titlecase</td><td>val: string, conjunctions?: boolean</td><td>string</td><td>Converts a string to Title Case.</td>
</tr>
<tr>
<td>uppercase</td><td>val: string</td><td>string</td><td>Converts a string to UPPERCASE.</td>
</tr>
<tr>
<td>uuid</td><td>n/a</td><td>string</td><td>Creates a uuid using "performance" if available.</td>
</tr>
</tbody>
</table>
<a href="#to" id="to" style="color: inherit; text-decoration: none;">
<h2>To</h2>
</a>
<table>
<caption>CHEK TO</caption>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>toArray</td><td>val: any, id?: string | T[], def?: T[]</td><td>T[]</td><td>Convers to an array.</td>
</tr>
<tr>
<td>toBoolean</td><td>val: any, def?: boolean</td><td>boolean</td><td>Converts to boolean.</td>
</tr>
<tr>
<td>toDate</td><td>val: any, def?: Date</td><td>Date</td><td>Converts to Date.</td>
</tr>
<tr>
<td>toDefault</td><td>val: any, def?: any</td><td>any</td><td>Converts to default value if null.</td>
</tr>
<tr>
<td>toEpoch</td><td>val: Date, def?: number</td><td>number</td><td>Converts to an Epoch.</td>
</tr>
<tr>
<td>toFloat</td><td>val: Date, def?: number</td><td>number</td><td>Converts to a float (number w/ decimal).</td>
</tr>
<tr>
<td>toJSON</td><td>obj: any, pretty?: number | boolean | string, def?: string</td><td>string</td><td>Converts to JSON safely.</td>
</tr>
<tr>
<td>toInteger</td><td>val: any, def?: number</td><td>number</td><td>Converts to an integer (a whole number).</td>
</tr>
<tr>
<td>toMap</td><td>val: any, id?: string | IMap<any>, def?: IMap<any></td><td>T</td><td>Converts to arrays and srings to an object map (see examples in method).</td>
</tr>
<tr>
<td>toNested</td><td>val: IMap<any>, def?: IMap<any></td><td>T</td><td>Converts object from "toUnnested" to a nested object.</td>
</tr>
<tr>
<td>toNumber</td><td>val: any, def?: number</td><td>number</td><td>Converts to a number.</td>
</tr>
<tr>
<td>toRegExp</td><td>val: any, def?: RegExp</td><td>RegExp</td><td>Converts to a Regular Expression.</td>
</tr>
<tr>
<td>toString</td><td>val: any, def?: string</td><td>string</td><td>Converts to a string.</td>
</tr>
<tr>
<td>toUnnested</td><td>obj: IMap<any>, prefix?: boolean | IMap<any>, def?: IMap<any></td><td>T</td><td>Converts an object to one flattened level using dot notation keys.</td>
</tr>
<tr>
<td>toWindow</td><td>key: any, val?: any</td><td>void</td><td>Adds methods to window used internally.</td>
</tr>
</tbody>
</table>
<a href="#type" id="type" style="color: inherit; text-decoration: none;">
<h2>Type</h2>
</a>
<table>
<caption>CHEK TYPE</caption>
<thead>
<tr>
<th><strong>Method</strong></th><th><strong>Params</strong></th><th><strong>Returns</strong></th><th><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>castType</td><td>val: any, type: any, def?: any</td><td>T</td><td>Casts a type to specified type.</td>
</tr>
<tr>
<td>getType</td><td>val: any, strict?: boolean | string, def?: string</td><td>T</td><td>Detects the type of the provided value.</td>
</tr>
</tbody>
</table>
<a href="#docs" id="docs" style="color: inherit; text-decoration: none;">
<h2>Docs</h2>
</a>
<p>See <a href="https://origin1tech.github.io/chek/">https://origin1tech.github.io/chek/</a></p>
<a href="#changes" id="changes" style="color: inherit; text-decoration: none;">
<h2>Changes</h2>
</a>
<p>See <a href="CHANGE.md">CHANGE.md</a></p>
<a href="#license" id="license" style="color: inherit; text-decoration: none;">
<h2>License</h2>
</a>
<p>See <a href="License">LICENSE</a></p>
</div>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class=" ">
<a href="modules.html">Exports</a>
</li>
<li class=" tsd-kind-namespace">
<a href="modules/default.html">default</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-interface">
<a href="interfaces/iarrayresult.html" class="tsd-kind-icon">IArray<wbr>Result</a>
</li>
<li class=" tsd-kind-interface">
<a href="interfaces/idateformat.html" class="tsd-kind-icon">IDate<wbr>Format</a>
</li>
<li class=" tsd-kind-interface tsd-has-type-parameter">
<a href="interfaces/imap.html" class="tsd-kind-icon">IMap</a>
</li>
<li class=" tsd-kind-interface">
<a href="interfaces/imetadata.html" class="tsd-kind-icon">IMetadata</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#icomparator" class="tsd-kind-icon">IComparator</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#icomparatorfield" class="tsd-kind-icon">IComparator<wbr>Field</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#icomparatoroptions" class="tsd-kind-icon">IComparator<wbr>Options</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#icomparatororder" class="tsd-kind-icon">IComparator<wbr>Order</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#icomparatorprimer" class="tsd-kind-icon">IComparator<wbr>Primer</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#icomparatortuple" class="tsd-kind-icon">IComparator<wbr>Tuple</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="modules.html#transform" class="tsd-kind-icon">Transform</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#assign" class="tsd-kind-icon">assign</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#camelcase" class="tsd-kind-icon">camelcase</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#capitalize" class="tsd-kind-icon">capitalize</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#casttype" class="tsd-kind-icon">cast<wbr>Type</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#clone" class="tsd-kind-icon">clone</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#contains" class="tsd-kind-icon">contains</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#containsany" class="tsd-kind-icon">contains<wbr>Any</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#create" class="tsd-kind-icon">create</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#decamelcase" class="tsd-kind-icon">decamelcase</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#del" class="tsd-kind-icon">del</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#duplicates" class="tsd-kind-icon">duplicates</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#extend" class="tsd-kind-icon">extend</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#first" class="tsd-kind-icon">first</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#flatten" class="tsd-kind-icon">flatten</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#fromepoch" class="tsd-kind-icon">from<wbr>Epoch</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#fromjson" class="tsd-kind-icon">fromJSON</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#get" class="tsd-kind-icon">get</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#gettype" class="tsd-kind-icon">get<wbr>Type</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#has" class="tsd-kind-icon">has</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#includes" class="tsd-kind-icon">includes</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#includesany" class="tsd-kind-icon">includes<wbr>Any</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isarray" class="tsd-kind-icon">is<wbr>Array</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isboolean" class="tsd-kind-icon">is<wbr>Boolean</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isbrowser" class="tsd-kind-icon">is<wbr>Browser</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isbuffer" class="tsd-kind-icon">is<wbr>Buffer</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isdate" class="tsd-kind-icon">is<wbr>Date</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isdebug" class="tsd-kind-icon">is<wbr>Debug</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isdirectory" class="tsd-kind-icon">is<wbr>Directory</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isdocker" class="tsd-kind-icon">is<wbr>Docker</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isempty" class="tsd-kind-icon">is<wbr>Empty</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isequal" class="tsd-kind-icon">is<wbr>Equal</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#iserror" class="tsd-kind-icon">is<wbr>Error</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isfile" class="tsd-kind-icon">is<wbr>File</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isfloat" class="tsd-kind-icon">is<wbr>Float</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isfunction" class="tsd-kind-icon">is<wbr>Function</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isinfinite" class="tsd-kind-icon">is<wbr>Infinite</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isinspect" class="tsd-kind-icon">is<wbr>Inspect</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isinteger" class="tsd-kind-icon">is<wbr>Integer</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#ismoment" class="tsd-kind-icon">is<wbr>Moment</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isnode" class="tsd-kind-icon">is<wbr>Node</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isnull" class="tsd-kind-icon">is<wbr>Null</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isnumber" class="tsd-kind-icon">is<wbr>Number</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isobject" class="tsd-kind-icon">is<wbr>Object</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isplainobject" class="tsd-kind-icon">is<wbr>Plain<wbr>Object</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#ispromise" class="tsd-kind-icon">is<wbr>Promise</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isregexp" class="tsd-kind-icon">is<wbr>Reg<wbr>Exp</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isroot" class="tsd-kind-icon">is<wbr>Root</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isstring" class="tsd-kind-icon">is<wbr>String</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#issymbol" class="tsd-kind-icon">is<wbr>Symbol</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#istruthy" class="tsd-kind-icon">is<wbr>Truthy</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#istype" class="tsd-kind-icon">is<wbr>Type</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isundefined" class="tsd-kind-icon">is<wbr>Undefined</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isundefinedornull" class="tsd-kind-icon">is<wbr>Undefined<wbr>OrNull</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isunique" class="tsd-kind-icon">is<wbr>Unique</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#isvalue" class="tsd-kind-icon">is<wbr>Value</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#iswindows" class="tsd-kind-icon">is<wbr>Windows</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#keys" class="tsd-kind-icon">keys</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#last" class="tsd-kind-icon">last</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#lowercase" class="tsd-kind-icon">lowercase</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#noop" class="tsd-kind-icon">noop</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#noopif" class="tsd-kind-icon">noop<wbr>If</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#omit" class="tsd-kind-icon">omit</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#orderby" class="tsd-kind-icon">order<wbr>By</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#padleft" class="tsd-kind-icon">pad<wbr>Left</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#padright" class="tsd-kind-icon">pad<wbr>Right</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#padvalues" class="tsd-kind-icon">pad<wbr>Values</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#pick" class="tsd-kind-icon">pick</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#pop" class="tsd-kind-icon">pop</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#push" class="tsd-kind-icon">push</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#put" class="tsd-kind-icon">put</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#reverse" class="tsd-kind-icon">reverse</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#set" class="tsd-kind-icon">set</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#shift" class="tsd-kind-icon">shift</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#slugify" class="tsd-kind-icon">slugify</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#splice" class="tsd-kind-icon">splice</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#split" class="tsd-kind-icon">split</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#titlecase" class="tsd-kind-icon">titlecase</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#toarray" class="tsd-kind-icon">to<wbr>Array</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#toboolean" class="tsd-kind-icon">to<wbr>Boolean</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#todate" class="tsd-kind-icon">to<wbr>Date</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#todefault" class="tsd-kind-icon">to<wbr>Default</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#toepoch" class="tsd-kind-icon">to<wbr>Epoch</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tofloat" class="tsd-kind-icon">to<wbr>Float</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tointeger" class="tsd-kind-icon">to<wbr>Integer</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tojson" class="tsd-kind-icon">toJSON</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#tomap" class="tsd-kind-icon">to<wbr>Map</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#tonested" class="tsd-kind-icon">to<wbr>Nested</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tonumber" class="tsd-kind-icon">to<wbr>Number</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#toregexp" class="tsd-kind-icon">to<wbr>Reg<wbr>Exp</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tostr" class="tsd-kind-icon">to<wbr>Str</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
</li>
<li class=" tsd-kind-function tsd-has-type-parameter">
<a href="modules.html#tounnested" class="tsd-kind-icon">to<wbr>Unnested</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#towindow" class="tsd-kind-icon">to<wbr>Window</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tryrequire" class="tsd-kind-icon">try<wbr>Require</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#tryrootrequire" class="tsd-kind-icon">try<wbr>Root<wbr>Require</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#trywrap" class="tsd-kind-icon">try<wbr>Wrap</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#unshift" class="tsd-kind-icon">unshift</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#uppercase" class="tsd-kind-icon">uppercase</a>
</li>
<li class=" tsd-kind-function">
<a href="modules.html#uuid" class="tsd-kind-icon">uuid</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="assets/js/main.js"></script>
</body>
</html>