Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
3095 lines (3082 sloc) 167 KB
---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>common | @uirouter/core</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/uirouter.css">
<script src="../assets/js/modernizr.js"></script>
<script src="../assets/js/reset.js"></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.js" 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">@uirouter/core</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">Internal UI-Router API</label>
<!--
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</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">
<ul class="tsd-breadcrumb">
<li>
<a href="../index.html">@uirouter/core</a>
</li>
<li>
<a href="common.html">common</a>
</li>
</ul>
<h1>Module common</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Random utility functions used in the UI-Router code</p>
</div>
<p>These functions are exported, but are subject to change without notice.</p>
</div>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Classes</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-class tsd-parent-kind-external-module tsd-has-type-parameter"><a href="../classes/common.queue.html" class="tsd-kind-icon">Queue</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Interfaces</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common._injectorlike.html" class="tsd-kind-icon">$<wbr>Injector<wbr>Like</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common._qlike.html" class="tsd-kind-icon">$QLike</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common._qlikedeferred.html" class="tsd-kind-icon">$QLike<wbr>Deferred</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common.coreservices.html" class="tsd-kind-icon">Core<wbr>Services</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common.locationconfig.html" class="tsd-kind-icon">Location<wbr>Config</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common.locationservices.html" class="tsd-kind-icon">Location<wbr>Services</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/common.obj.html" class="tsd-kind-icon">Obj</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter"><a href="../interfaces/common.typedmap.html" class="tsd-kind-icon">Typed<wbr>Map</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Type aliases</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-type-alias tsd-parent-kind-external-module"><a href="common.html#iinjectable" class="tsd-kind-icon">IInjectable</a></li>
<li class="tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#mapper" class="tsd-kind-icon">Mapper</a></li>
<li class="tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#predicate" class="tsd-kind-icon">Predicate</a></li>
<li class="tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#predicatebinary" class="tsd-kind-icon">Predicate<wbr>Binary</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Variables</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#angular" class="tsd-kind-icon">angular</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#assertmap" class="tsd-kind-icon">assert<wbr>Map</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#assertpredicate" class="tsd-kind-icon">assert<wbr>Predicate</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#equals" class="tsd-kind-icon">equals</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#extend" class="tsd-kind-icon">extend</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#foreach" class="tsd-kind-icon">for<wbr>Each</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#fromjson" class="tsd-kind-icon">from<wbr>Json</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#global" class="tsd-kind-icon">global</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#inarray" class="tsd-kind-icon">in<wbr>Array</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#mapobj" class="tsd-kind-icon">map<wbr>Obj</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#pushto" class="tsd-kind-icon">push<wbr>To</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#removefrom" class="tsd-kind-icon">remove<wbr>From</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#root" class="tsd-kind-icon">root</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="common.html#tojson" class="tsd-kind-icon">to<wbr>Json</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Functions</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#_arrayseq" class="tsd-kind-icon">_arrays<wbr>Eq</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#_equals" class="tsd-kind-icon">_equals</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#_extend" class="tsd-kind-icon">_extend</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#_foreach" class="tsd-kind-icon">_for<wbr>Each</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#_inarray" class="tsd-kind-icon">_in<wbr>Array</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#_pushto" class="tsd-kind-icon">_push<wbr>To</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#_removefrom" class="tsd-kind-icon">_remove<wbr>From</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#alltruer" class="tsd-kind-icon">all<wbr>TrueR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#ancestors" class="tsd-kind-icon">ancestors</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#anytruer" class="tsd-kind-icon">any<wbr>TrueR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#applypairs" class="tsd-kind-icon">apply<wbr>Pairs</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#arraytuples" class="tsd-kind-icon">array<wbr>Tuples</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#assertfn" class="tsd-kind-icon">assert<wbr>Fn</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#copy" class="tsd-kind-icon">copy</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#createproxyfunctions" class="tsd-kind-icon">create<wbr>Proxy<wbr>Functions</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#defaults" class="tsd-kind-icon">defaults</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#deregall" class="tsd-kind-icon">dereg<wbr>All</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#filter" class="tsd-kind-icon">filter</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#find" class="tsd-kind-icon">find</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#flatten" class="tsd-kind-icon">flatten</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#flattenr" class="tsd-kind-icon">flattenR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#identity" class="tsd-kind-icon">identity</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#inherit" class="tsd-kind-icon">inherit</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#makestub" class="tsd-kind-icon">make<wbr>Stub</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#map" class="tsd-kind-icon">map</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#merger" class="tsd-kind-icon">mergeR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#noimpl" class="tsd-kind-icon">no<wbr>Impl</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#noop" class="tsd-kind-icon">noop</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#omit" class="tsd-kind-icon">omit</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#pairs" class="tsd-kind-icon">pairs</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#pick" class="tsd-kind-icon">pick</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#pluck" class="tsd-kind-icon">pluck</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#pushr" class="tsd-kind-icon">pushR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#silenceuncaughtinpromise" class="tsd-kind-icon">silence<wbr>Uncaught<wbr>InPromise</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#silentrejection" class="tsd-kind-icon">silent<wbr>Rejection</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#tail" class="tsd-kind-icon">tail</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter"><a href="common.html#uniqr" class="tsd-kind-icon">uniqR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#unnest" class="tsd-kind-icon">unnest</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#unnestr" class="tsd-kind-icon">unnestR</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="common.html#values" class="tsd-kind-icon">values</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-not-exported">
<h3>Object literals</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-object-literal tsd-parent-kind-external-module tsd-is-not-exported"><a href="common.html#services" class="tsd-kind-icon">services</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Type aliases</h2>
<section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-external-module">
<a name="iinjectable" class="tsd-anchor"></a>
<!--
<h3>IInjectable</h3>
-->
<div class="tsd-signature tsd-kind-icon">IInjectable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">any[]</span> <div class="tsd-header">
<p> An ng1-style injectable </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An ng1-style injectable</p>
</div>
<p>This could be a (non-minified) function such as:</p>
<pre><code class="language-js"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">injectableFunction</span>(<span class="hljs-params">SomeDependency</span>) </span>{
}</code></pre>
<p>or an explicitly annotated function (minify safe)</p>
<pre><code class="language-js">injectableFunction.$inject = [ <span class="hljs-string">'SomeDependency'</span> ];
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">injectableFunction</span>(<span class="hljs-params">SomeDependency</span>) </span>{
}</code></pre>
<p>or an array style annotated function (minify safe)</p>
<pre><code class="language-js">[<span class="hljs-string">'SomeDependency'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">injectableFunction</span>(<span class="hljs-params">SomeDependency</span>) </span>{
}];</code></pre>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L63">common/common.ts:63</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="mapper" class="tsd-anchor"></a>
<!--
<h3>Mapper</h3>
-->
<div class="tsd-signature tsd-kind-icon">Mapper<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div>
<div class="tsd-declaration">
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">X</span>, key<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>x <span class="tsd-signature-type">X</span></h5>
</li>
<li>
<h5>key: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L30">common/common.ts:30</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="predicate" class="tsd-anchor"></a>
<!--
<h3>Predicate</h3>
-->
<div class="tsd-signature tsd-kind-icon">Predicate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div>
<div class="tsd-declaration">
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">X</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>x: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">X</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L34">common/common.ts:34</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="predicatebinary" class="tsd-anchor"></a>
<!--
<h3>Predicate<wbr>Binary</h3>
-->
<div class="tsd-signature tsd-kind-icon">Predicate<wbr>Binary<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div>
<div class="tsd-declaration">
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">X</span>, y<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Y</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>x: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">X</span></h5>
</li>
<li>
<h5>y: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">Y</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L35">common/common.ts:35</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Variables</h2>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="angular" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> angular</h3>
-->
<div class="tsd-signature tsd-kind-icon">angular<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;root.angular || {}</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L18">common/common.ts:18</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="assertmap" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> assert<wbr>Map</h3>
-->
<div class="tsd-signature tsd-kind-icon">assert<wbr>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span><span class="tsd-signature-symbol"> =&nbsp;assertFn</span> <div class="tsd-header">
<p> Given a .map function, builds a .map function which throws an error if any mapped elements do not pass a truthyness test. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given a .map function, builds a .map function which throws an error if any mapped elements do not pass a truthyness test.</p>
</div>
<dl class="tsd-comment-tags">
<dt>example</dt>
<dd><pre><code>
<span class="hljs-keyword">var</span> data = { <span class="hljs-attr">foo</span>: <span class="hljs-number">1</span>, <span class="hljs-attr">bar</span>: <span class="hljs-number">2</span> };
<span class="hljs-keyword">let</span> keys = [ <span class="hljs-string">'foo'</span>, <span class="hljs-string">'bar'</span> ]
<span class="hljs-keyword">let</span> values = keys.map(assertMap(<span class="hljs-function"><span class="hljs-params">key</span> =&gt;</span> data[key], <span class="hljs-string">"Key not found"</span>));
<span class="hljs-comment">// values is [1, 2]</span>
<span class="hljs-keyword">let</span> keys = [ <span class="hljs-string">'foo'</span>, <span class="hljs-string">'bar'</span>, <span class="hljs-string">'baz'</span> ]
<span class="hljs-keyword">let</span> values = keys.map(assertMap(<span class="hljs-function"><span class="hljs-params">key</span> =&gt;</span> data[key], <span class="hljs-string">"Key not found"</span>));
<span class="hljs-comment">// throws Error("Key not found")</span></code></pre></dd>
</dl>
</div>
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-variable tsd-has-type-parameter tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">&lt;T, U&gt;<span class="tsd-signature-symbol">(</span>mapFn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span>, errMsg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
<li>
<h4>U</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>mapFn <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>t<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">U</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>t <span class="tsd-signature-type">T</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">U</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</li>
<li>
<h5>errMsg <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">function</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>t<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">U</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>t <span class="tsd-signature-type">T</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">U</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
</li>
</ul>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L452">common/common.ts:452</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="assertpredicate" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> assert<wbr>Predicate</h3>
-->
<div class="tsd-signature tsd-kind-icon">assert<wbr>Predicate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span><span class="tsd-signature-symbol"> =&nbsp;assertFn</span> <div class="tsd-header">
<p> Given a .filter Predicate, builds a .filter Predicate which throws an error if any elements do not pass. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given a .filter Predicate, builds a .filter Predicate which throws an error if any elements do not pass.</p>
</div>
<dl class="tsd-comment-tags">
<dt>example</dt>
<dd><pre><code>
let isNumber = (obj) =&gt; typeof(obj) === 'number';
let allNumbers = [ <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>, <span class="hljs-number">5</span> ];
allNumbers.filter(assertPredicate(isNumber)); <span class="hljs-comment">//OK</span>
let oneString = [ <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>, <span class="hljs-string">"5"</span> ];
oneString.filter(assertPredicate(isNumber, <span class="hljs-string">"Not all numbers"</span>)); <span class="hljs-comment">// throws Error(""Not all numbers"");</span></code></pre></dd>
</dl>
</div>
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-variable tsd-has-type-parameter tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">&lt;T&gt;<span class="tsd-signature-symbol">(</span>predicate<span class="tsd-signature-symbol">: </span><a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span>, errMsg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>predicate <a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>errMsg <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L435">common/common.ts:435</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="equals" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> equals</h3>
-->
<div class="tsd-signature tsd-kind-icon">equals<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;angular.equals || _equals</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L24">common/common.ts:24</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="extend" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> extend</h3>
-->
<div class="tsd-signature tsd-kind-icon">extend<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">assign</span><span class="tsd-signature-symbol"> =&nbsp;Object.assign || _extend</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L23">common/common.ts:23</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="foreach" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> for<wbr>Each</h3>
-->
<div class="tsd-signature tsd-kind-icon">for<wbr>Each<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;angular.forEach || _forEach</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L22">common/common.ts:22</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="fromjson" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> from<wbr>Json</h3>
-->
<div class="tsd-signature tsd-kind-icon">from<wbr>Json<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;angular.fromJson || JSON.parse.bind(JSON)</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L20">common/common.ts:20</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="global" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> global</h3>
-->
<div class="tsd-signature tsd-kind-icon">global<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L13">common/common.ts:13</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="inarray" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> in<wbr>Array</h3>
-->
<div class="tsd-signature tsd-kind-icon">in<wbr>Array<span class="tsd-signature-symbol">:</span> <a href="common.html#_inarray" class="tsd-signature-type">_inArray</a><span class="tsd-signature-symbol"> =&nbsp;curry(_inArray) as any</span> <div class="tsd-header">
<p> Given an array, returns true if the object is found in the array, (using indexOf) </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array, returns true if the object is found in the array, (using indexOf)</p>
</div>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L155">common/common.ts:155</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="mapobj" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagLet">Let</span> map<wbr>Obj</h3>
-->
<div class="tsd-signature tsd-kind-icon">map<wbr>Obj<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span><span class="tsd-signature-symbol"> =&nbsp;map</span> <div class="tsd-header">
<p> Given an object, returns a new object, where each property is transformed by the callback function </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an object, returns a new object, where each property is transformed by the callback function</p>
</div>
</div>
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-variable tsd-has-type-parameter tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">&lt;T, U&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span>, callback<span class="tsd-signature-symbol">: </span><a href="common.html#mapper" class="tsd-signature-type">Mapper</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">U</span><span class="tsd-signature-symbol">&gt;</span>, target<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
<li>
<h4>U</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <span class="tsd-signature-type">object</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">T</span></h5>
</li>
</ul>
</li>
<li>
<h5>callback <a href="common.html#mapper" class="tsd-signature-type">Mapper</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">U</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>target: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">object</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">T</span></h5>
</li>
</ul>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">object</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">U</span></h5>
</li>
</ul>
</div>
</li>
</ul>
</li>
</ul>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L302">common/common.ts:302</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="pushto" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> push<wbr>To</h3>
-->
<div class="tsd-signature tsd-kind-icon">push<wbr>To<span class="tsd-signature-symbol">:</span> <a href="common.html#_pushto" class="tsd-signature-type">_pushTo</a><span class="tsd-signature-symbol"> =&nbsp;curry(_pushTo) as any</span> <div class="tsd-header">
<p> pushes a values to an array and returns the value </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>pushes a values to an array and returns the value</p>
</div>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L176">common/common.ts:176</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="removefrom" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> remove<wbr>From</h3>
-->
<div class="tsd-signature tsd-kind-icon">remove<wbr>From<span class="tsd-signature-symbol">:</span> <a href="common.html#_removefrom" class="tsd-signature-type">_removeFrom</a><span class="tsd-signature-symbol"> =&nbsp;curry(_removeFrom) as any</span> <div class="tsd-header">
<p> Given an array, and an item, if the item is found in the array, it removes it (in-place).
The same array is returned </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array, and an item, if the item is found in the array, it removes it (in-place).
The same array is returned</p>
</div>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L166">common/common.ts:166</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="root" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> root</h3>
-->
<div class="tsd-signature tsd-kind-icon">root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;(typeof self &#x3D;&#x3D;&#x3D; &#x27;object&#x27; &amp;&amp; self.self &#x3D;&#x3D;&#x3D; self &amp;&amp; self) ||(typeof global &#x3D;&#x3D;&#x3D; &#x27;object&#x27; &amp;&amp; global.global &#x3D;&#x3D;&#x3D; global &amp;&amp; global) ||this</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L14">common/common.ts:14</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
<a name="tojson" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> to<wbr>Json</h3>
-->
<div class="tsd-signature tsd-kind-icon">to<wbr>Json<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;angular.toJson || JSON.stringify.bind(JSON)</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L21">common/common.ts:21</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Functions</h2>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_arrayseq" class="tsd-anchor"></a>
<!--
<h3>_arrays<wbr>Eq</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">_arrays<wbr>Eq<span class="tsd-signature-symbol">(</span>a1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span>, a2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>a1 <span class="tsd-signature-type">any[]</span></h5>
</li>
<li>
<h5>a2 <span class="tsd-signature-type">any[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L612">common/common.ts:612</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_equals" class="tsd-anchor"></a>
<!--
<h3>_equals</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">_equals<span class="tsd-signature-symbol">(</span>o1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, o2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>o1 <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>o2 <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L582">common/common.ts:582</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="_extend" class="tsd-anchor"></a>
<!--
<h3>_extend</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">_extend<span class="tsd-signature-symbol">(</span>toObj<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, <span class="tsd-signature-symbol">...</span>fromObjs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Obj[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> Like Object.assign() </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Like Object.assign()</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>toObj <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
<li>
<h5><span class="tsd-signature-symbol">...</span>fromObjs: <span class="tsd-flag ts-flagRest">Rest</span>&nbsp; <span class="tsd-signature-type">Obj[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L567">common/common.ts:567</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_foreach" class="tsd-anchor"></a>
<!--
<h3>_for<wbr>Each</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">_for<wbr>Each<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">any</span>, cb<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span>, _this<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> Naive forEach implementation works with Objects or Arrays </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Naive forEach implementation works with Objects or Arrays</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj <span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>cb <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>el<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, idx<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>el <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>idx: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</li>
<li>
<h5>_this <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L561">common/common.ts:561</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="_inarray" class="tsd-anchor"></a>
<!--
<h3>_in<wbr>Array</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">_in<wbr>Array<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">_in<wbr>Array<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>array <span class="tsd-signature-type">any[]</span></h5>
</li>
<li>
<h5>obj <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L156">common/common.ts:156</a></li>
</ul>
</aside> </li>
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>array <span class="tsd-signature-type">any[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">function</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L157">common/common.ts:157</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="_pushto" class="tsd-anchor"></a>
<!--
<h3>_push<wbr>To</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">_push<wbr>To&lt;T&gt;<span class="tsd-signature-symbol">(</span>arr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span>, val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
<li class="tsd-signature tsd-kind-icon">_push<wbr>To&lt;T&gt;<span class="tsd-signature-symbol">(</span>arr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>arr <span class="tsd-signature-type">T[]</span></h5>
</li>
<li>
<h5>val <span class="tsd-signature-type">T</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L177">common/common.ts:177</a></li>
</ul>
</aside> </li>
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>arr <span class="tsd-signature-type">T[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">function</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>val <span class="tsd-signature-type">T</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L178">common/common.ts:178</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="_removefrom" class="tsd-anchor"></a>
<!--
<h3>_remove<wbr>From</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">_remove<wbr>From&lt;T&gt;<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span></li>
<li class="tsd-signature tsd-kind-icon">_remove<wbr>From&lt;T&gt;<span class="tsd-signature-symbol">(</span>array<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>array <span class="tsd-signature-type">T[]</span></h5>
</li>
<li>
<h5>obj <span class="tsd-signature-type">T</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T[]</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L167">common/common.ts:167</a></li>
</ul>
</aside> </li>
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>array <span class="tsd-signature-type">T[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">function</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj <span class="tsd-signature-type">T</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T[]</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L168">common/common.ts:168</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="alltruer" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> all<wbr>TrueR</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">all<wbr>TrueR<span class="tsd-signature-symbol">(</span>memo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, elem<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> Reduce function that returns true if all of the values are truthy. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Reduce function that returns true if all of the values are truthy.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>memo <span class="tsd-signature-type">boolean</span></h5>
</li>
<li>
<h5>elem <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L346">common/common.ts:346</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="ancestors" class="tsd-anchor"></a>
<!--
<h3>ancestors</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">ancestors<span class="tsd-signature-symbol">(</span>first<span class="tsd-signature-symbol">: </span><a href="../classes/state.stateobject.html" class="tsd-signature-type">StateObject</a>, second<span class="tsd-signature-symbol">: </span><a href="../classes/state.stateobject.html" class="tsd-signature-type">StateObject</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">StateObject[]</span></li>
<li class="tsd-header">
<p> Finds the common ancestor path between two states. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Finds the common ancestor path between two states.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>first <a href="../classes/state.stateobject.html" class="tsd-signature-type">StateObject</a></h5>
: <div class="tsd-comment tsd-typography">
<p>The first state.</p>
</div>
</li>
<li>
<h5>second <a href="../classes/state.stateobject.html" class="tsd-signature-type">StateObject</a></h5>
: <div class="tsd-comment tsd-typography">
<p>The second state.</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">StateObject[]</span></h4>
: <p>Returns an array of state names in descending order, not including the root.</p>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L209">common/common.ts:209</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="anytruer" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> any<wbr>TrueR</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">any<wbr>TrueR<span class="tsd-signature-symbol">(</span>memo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, elem<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> Reduce function that returns true if any of the values are truthy. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Reduce function that returns true if any of the values are truthy.</p>
</div>
<ul>
<li>@example
<code>`</code></li>
</ul>
<p>let vals = [ 0, null, undefined ];
vals.reduce(anyTrueR, true); // false</p>
<p>vals.push(&quot;hello world&quot;);
vals.reduce(anyTrueR, true); // true
<code>`</code></p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>memo <span class="tsd-signature-type">boolean</span></h5>
</li>
<li>
<h5>elem <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L361">common/common.ts:361</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="applypairs" class="tsd-anchor"></a>
<!--
<h3>apply<wbr>Pairs</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">apply<wbr>Pairs<span class="tsd-signature-symbol">(</span>memo<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span>, keyValTuple<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-header">
<p> Reduce function which builds an object from an array of [key, value] pairs. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Reduce function which builds an object from an array of [key, value] pairs.</p>
</div>
<p>Each iteration sets the key/val pair on the memo object, then returns the memo for the next iteration.</p>
<p>Each keyValueTuple should be an array with values [ key: string, value: any ]</p>
<dl class="tsd-comment-tags">
<dt>example</dt>
<dd><pre><code>
<span class="hljs-selector-tag">var</span> pairs = [ [<span class="hljs-string">"fookey"</span>, <span class="hljs-string">"fooval"</span>], [<span class="hljs-string">"barkey"</span>, <span class="hljs-string">"barval"</span>] ]
<span class="hljs-selector-tag">var</span> pairsToObj = pairs.reduce((memo, pair) =&gt; applyPairs(memo, pair), {})
<span class="hljs-comment">// pairsToObj == { fookey: "fooval", barkey: "barval" }</span>
<span class="hljs-comment">// Or, more simply:</span>
<span class="hljs-selector-tag">var</span> pairsToObj = pairs.reduce(applyPairs, {})
<span class="hljs-comment">// pairsToObj == { fookey: "fooval", barkey: "barval" }</span></code></pre></dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>memo <a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>keyValTuple <span class="tsd-signature-type">any[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L538">common/common.ts:538</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="arraytuples" class="tsd-anchor"></a>
<!--
<h3>array<wbr>Tuples</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">array<wbr>Tuples<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span></li>
<li class="tsd-header">
<p> Given two or more parallel arrays, returns an array of tuples where
each tuple is composed of [ a[i], b[i], ... z[i] ] </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given two or more parallel arrays, returns an array of tuples where
each tuple is composed of [ a[i], b[i], ... z[i] ]</p>
</div>
<dl class="tsd-comment-tags">
<dt>example</dt>
<dd><pre><code>
let foo = [ <span class="hljs-number">0</span>, <span class="hljs-number">2</span>, <span class="hljs-number">4</span>, <span class="hljs-number">6</span> ];
let bar = [ <span class="hljs-number">1</span>, <span class="hljs-number">3</span>, <span class="hljs-number">5</span>, <span class="hljs-number">7</span> ];
let baz = [ <span class="hljs-number">10</span>, <span class="hljs-number">30</span>, <span class="hljs-number">50</span>, <span class="hljs-number">70</span> ];
arrayTuples(foo, bar); <span class="hljs-comment">// [ [0, 1], [2, 3], [4, 5], [6, 7] ]</span>
arrayTuples(foo, bar, baz); <span class="hljs-comment">// [ [0, 1, 10], [2, 3, 30], [4, 5, 50], [6, 7, 70] ]</span></code></pre></dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-signature-symbol">...</span>args: <span class="tsd-flag ts-flagRest">Rest</span>&nbsp; <span class="tsd-signature-type">any[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any[]</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L488">common/common.ts:488</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="assertfn" class="tsd-anchor"></a>
<!--
<h3>assert<wbr>Fn</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">assert<wbr>Fn<span class="tsd-signature-symbol">(</span>predicateOrMap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, errMsg<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>predicateOrMap <span class="tsd-signature-type">Function</span></h5>
</li>
<li>
<h5>errMsg: <span class="tsd-flag ts-flagDefault value">Default value</span>&nbsp; <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol"> =&nbsp;&quot;assert failure&quot;</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L453">common/common.ts:453</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="copy" class="tsd-anchor"></a>
<!--
<h3>copy</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">copy<span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, dest<span class="tsd-signature-symbol">?: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></li>
<li class="tsd-header">
<p> shallow copy from src to dest </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>shallow copy from src to dest</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>src <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
<li>
<h5>dest: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L554">common/common.ts:554</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="createproxyfunctions" class="tsd-anchor"></a>
<!--
<h3>create<wbr>Proxy<wbr>Functions</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">create<wbr>Proxy<wbr>Functions<span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, target<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, bind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, fnNames<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string[]</span>, latebind<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></li>
<li class="tsd-header">
<p> Builds proxy functions on the <code>to</code> object which pass through to the <code>from</code> object. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Builds proxy functions on the <code>to</code> object which pass through to the <code>from</code> object.</p>
</div>
<p>For each key in <code>fnNames</code>, creates a proxy function on the <code>to</code> object.
The proxy function calls the real function on the <code>from</code> object.</p>
<h4 id="example-">Example:</h4>
<p>This example creates an new class instance whose functions are prebound to the new&#39;d object.</p>
<pre><code class="language-js"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Foo</span> </span>{
<span class="hljs-keyword">constructor</span>(data) {
<span class="hljs-comment">// Binds all functions from Foo.prototype to 'this',</span>
<span class="hljs-comment">// then copies them to 'this'</span>
bindFunctions(Foo.prototype, <span class="hljs-keyword">this</span>, <span class="hljs-keyword">this</span>);
<span class="hljs-keyword">this</span>.data = data;
}
log() {
<span class="hljs-built_in">console</span>.log(<span class="hljs-keyword">this</span>.data);
}
}
<span class="hljs-keyword">let</span> myFoo = <span class="hljs-keyword">new</span> Foo([<span class="hljs-number">1</span>,<span class="hljs-number">2</span>,<span class="hljs-number">3</span>]);
<span class="hljs-keyword">var</span> logit = myFoo.log;
logit(); <span class="hljs-comment">// logs [1, 2, 3] from the myFoo 'this' instance</span></code></pre>
<h4 id="example-">Example:</h4>
<p>This example creates a bound version of a service function, and copies it to another object</p>
<pre><code>
<span class="hljs-keyword">var</span> SomeService = {
<span class="hljs-keyword">this</span>.data = [<span class="hljs-number">3</span>, <span class="hljs-number">4</span>, <span class="hljs-number">5</span>];
<span class="hljs-keyword">this</span>.log = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-built_in">console</span>.log(<span class="hljs-keyword">this</span>.data);
}
}
<span class="hljs-comment">// Constructor fn</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">OtherThing</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-comment">// Binds all functions from SomeService to SomeService,</span>
<span class="hljs-comment">// then copies them to 'this'</span>
bindFunctions(SomeService, <span class="hljs-keyword">this</span>, SomeService);
}
<span class="hljs-keyword">let</span> myOtherThing = <span class="hljs-keyword">new</span> OtherThing();
myOtherThing.log(); <span class="hljs-comment">// logs [3, 4, 5] from SomeService's 'this'</span></code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>source <span class="tsd-signature-type">Function</span></h5>
: <div class="tsd-comment tsd-typography">
<p>A function that returns the source object which contains the original functions to be bound</p>
</div>
</li>
<li>
<h5>target <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
: <div class="tsd-comment tsd-typography">
<p>A function that returns the target object which will receive the bound functions</p>
</div>
</li>
<li>
<h5>bind <span class="tsd-signature-type">Function</span></h5>
: <div class="tsd-comment tsd-typography">
<p>A function that returns the object which the functions will be bound to</p>
</div>
</li>
<li>
<h5>fnNames: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">string[]</span></h5>
: <div class="tsd-comment tsd-typography">
<p>The function names which will be bound (Defaults to all the functions found on the &#39;from&#39; object)</p>
</div>
</li>
<li>
<h5>latebind: <span class="tsd-flag ts-flagDefault value">Default value</span>&nbsp; <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;false</span></h5>
: <div class="tsd-comment tsd-typography">
<p>If true, the binding of the function is delayed until the first time it&#39;s invoked</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L125">common/common.ts:125</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="defaults" class="tsd-anchor"></a>
<!--
<h3>defaults</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">defaults<span class="tsd-signature-symbol">(</span>opts<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, <span class="tsd-signature-symbol">...</span>defaultsList<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Obj[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> Applies a set of defaults to an options object. The options object is filtered
to only those properties of the objects in the defaultsList.
Earlier objects in the defaultsList take precedence when applying defaults. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Applies a set of defaults to an options object. The options object is filtered
to only those properties of the objects in the defaultsList.
Earlier objects in the defaultsList take precedence when applying defaults.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>opts <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5><span class="tsd-signature-symbol">...</span>defaultsList: <span class="tsd-flag ts-flagRest">Rest</span>&nbsp; <span class="tsd-signature-type">Obj[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L194">common/common.ts:194</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="deregall" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> dereg<wbr>All</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">dereg<wbr>All<span class="tsd-signature-symbol">(</span>functions<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> Given an array of (deregistration) functions, calls all functions and removes each one from the source array </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array of (deregistration) functions, calls all functions and removes each one from the source array</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>functions <span class="tsd-signature-type">Function[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L184">common/common.ts:184</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="filter" class="tsd-anchor"></a>
<!--
<h3>filter</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">filter&lt;T&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span></li>
<li class="tsd-header">
<p> Given an array of objects, returns a new array containing only the elements which passed the callback predicate </p>
</li>
<li class="tsd-signature tsd-kind-icon">filter&lt;T&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-header">
<p> Given an object, returns a new object with only those properties that passed the callback predicate </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array of objects, returns a new array containing only the elements which passed the callback predicate</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <span class="tsd-signature-type">T[]</span></h5>
</li>
<li>
<h5>callback <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>t<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, key<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>t <span class="tsd-signature-type">T</span></h5>
</li>
<li>
<h5>key: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T[]</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L271">common/common.ts:271</a></li>
</ul>
</aside> </li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an object, returns a new object with only those properties that passed the callback predicate</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>callback <span class="tsd-signature-type">function</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>t<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, key<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>t <span class="tsd-signature-type">T</span></h5>
</li>
<li>
<h5>key: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L273">common/common.ts:273</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="find" class="tsd-anchor"></a>
<!--
<h3>find</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">find&lt;T&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span>, callback<span class="tsd-signature-symbol">: </span><a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
<li class="tsd-header">
<p> Given an object, return the first property of that object which passed the callback predicate </p>
</li>
<li class="tsd-signature tsd-kind-icon">find&lt;T&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span>, callback<span class="tsd-signature-symbol">: </span><a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
<li class="tsd-header">
<p> Given an array of objects, returns the first object which passed the callback predicate </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an object, return the first property of that object which passed the callback predicate</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>callback <a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L286">common/common.ts:286</a></li>
</ul>
</aside> </li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array of objects, returns the first object which passed the callback predicate</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <span class="tsd-signature-type">T[]</span></h5>
</li>
<li>
<h5>callback <a href="common.html#predicate" class="tsd-signature-type">Predicate</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L288">common/common.ts:288</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="flatten" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> flatten</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">flatten<span class="tsd-signature-symbol">(</span>arr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> Return a completely flattened version of an array. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Return a completely flattened version of an array.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>arr <span class="tsd-signature-type">any[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L420">common/common.ts:420</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="flattenr" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> flattenR</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">flattenR<span class="tsd-signature-symbol">(</span>memo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[]</span>, elem<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> Reduce function which recursively un-nests all arrays </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Reduce function which recursively un-nests all arrays</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>memo <span class="tsd-signature-type">any[]</span></h5>
</li>
<li>
<h5>elem <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L384">common/common.ts:384</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="identity" class="tsd-anchor"></a>
<!--
<h3>identity</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">identity<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>x <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L25">common/common.ts:25</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="inherit" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> inherit</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">inherit<span class="tsd-signature-symbol">(</span>parent<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, extra<span class="tsd-signature-symbol">?: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
<li class="tsd-header">
<p> prototypal inheritance helper.
Creates a new object which has <code>parent</code> object as its prototype, and then copies the properties from <code>extra</code> onto it </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>prototypal inheritance helper.
Creates a new object which has <code>parent</code> object as its prototype, and then copies the properties from <code>extra</code> onto it</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>parent <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
<li>
<h5>extra: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L152">common/common.ts:152</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="makestub" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> make<wbr>Stub</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">make<wbr>Stub&lt;T&gt;<span class="tsd-signature-symbol">(</span>service<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, methods<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">keyof T[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>service <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>methods <span class="tsd-signature-type">keyof T[]</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/coreservices.ts#L15">common/coreservices.ts:15</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="map" class="tsd-anchor"></a>
<!--
<h3>map</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">map&lt;T, U&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span>, callback<span class="tsd-signature-symbol">: </span><a href="common.html#mapper" class="tsd-signature-type">Mapper</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">U</span><span class="tsd-signature-symbol">&gt;</span>, target<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">U[]</span></li>
<li class="tsd-header">
<p> Given an array, returns a new array, where each element is transformed by the callback function </p>
</li>
<li class="tsd-signature tsd-kind-icon">map&lt;T, U&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span>, callback<span class="tsd-signature-symbol">: </span><a href="common.html#mapper" class="tsd-signature-type">Mapper</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">U</span><span class="tsd-signature-symbol">&gt;</span>, target<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span></li>
<li class="tsd-header">
<p> Maps an array or object properties using a callback function </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array, returns a new array, where each element is transformed by the callback function</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
<li>
<h4>U</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <span class="tsd-signature-type">T[]</span></h5>
</li>
<li>
<h5>callback <a href="common.html#mapper" class="tsd-signature-type">Mapper</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">U</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>target: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">Array</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">U[]</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L308">common/common.ts:308</a></li>
</ul>
</aside> </li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Maps an array or object properties using a callback function</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</h4>
</li>
<li>
<h4>U</h4>
</li>
</ul>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>collection <span class="tsd-signature-type">object</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">T</span></h5>
</li>
</ul>
</li>
<li>
<h5>callback <a href="common.html#mapper" class="tsd-signature-type">Mapper</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">U</span><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>target: <span class="tsd-flag ts-flagOptional">Optional</span>&nbsp; <span class="tsd-signature-type">object</span></h5>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">T</span></h5>
</li>
</ul>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">object</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">U</span></h5>
</li>
</ul>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L309">common/common.ts:309</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="merger" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> mergeR</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">mergeR<span class="tsd-signature-symbol">(</span>memo<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, item<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></li>
<li class="tsd-header">
<p> Reduce function that merges each element of the list into a single object, using extend </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Reduce function that merges each element of the list into a single object, using extend</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>memo <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
<li>
<h5>item <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L200">common/common.ts:200</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="noimpl" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> no<wbr>Impl</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">no<wbr>Impl<span class="tsd-signature-symbol">(</span>fnname<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">(Anonymous function)</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>fnname <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">(Anonymous function)</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/coreservices.ts#L11">common/coreservices.ts:11</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="noop" class="tsd-anchor"></a>
<!--
<h3>noop</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">noop<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L28">common/common.ts:28</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="omit" class="tsd-anchor"></a>
<!--
<h3>omit</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">omit<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, propNames<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></li>
<li class="tsd-header">
<p> Return a copy of the object omitting the blacklisted properties. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Return a copy of the object omitting the blacklisted properties.</p>
</div>
<dl class="tsd-comment-tags">
<dt>example</dt>
<dd><pre><code>
<span class="hljs-keyword">var</span> foo = <span class="hljs-comment">{ a: 1, b: 2, c: 3 }</span>;
<span class="hljs-keyword">var</span> ab = omit(foo, [<span class="hljs-string">'a'</span>, <span class="hljs-string">'b'</span>]); <span class="hljs-comment">// { c: 3 }</span></code></pre></dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
: <div class="tsd-comment tsd-typography">
<p>the source object</p>
</div>
</li>
<li>
<h5>propNames <span class="tsd-signature-type">string[]</span></h5>
: <div class="tsd-comment tsd-typography">
<p>an Array of strings, which are the blacklisted property names</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L253">common/common.ts:253</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="pairs" class="tsd-anchor"></a>
<!--
<h3><span class="tsd-flag ts-flagConst">Const</span> pairs</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">pairs<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any[][]</span></li>
<li class="tsd-header">
<p> Like _.pairs: Given an object, returns an array of key/value pairs </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Like _.pairs: Given an object, returns an array of key/value pairs</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any[][]</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L472">common/common.ts:472</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="pick" class="tsd-anchor"></a>
<!--
<h3>pick</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">pick<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a>, propNames<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></li>
<li class="tsd-header">
<p> Return a copy of the object only containing the whitelisted properties. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Return a copy of the object only containing the whitelisted properties.</p>
</div>
<h4 id="example-">Example:</h4>
<pre><code><span class="hljs-keyword">var</span> foo = <span class="hljs-comment">{ a: 1, b: 2, c: 3 }</span>;
<span class="hljs-keyword">var</span> ab = pick(foo, [<span class="hljs-string">'a'</span>, <span class="hljs-string">'b'</span>]); <span class="hljs-comment">// { a: 1, b: 2 }</span></code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>obj <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
: <div class="tsd-comment tsd-typography">
<p>the source object</p>
</div>
</li>
<li>
<h5>propNames <span class="tsd-signature-type">string[]</span></h5>
: <div class="tsd-comment tsd-typography">
<p>an Array of strings, which are the whitelisted property names</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ui-router/core/blob/d7fcc8f/src/common/common.ts#L231">common/common.ts:231</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<a name="pluck" class="tsd-anchor"></a>
<!--
<h3>pluck</h3>
-->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">pluck&lt;T&gt;<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Obj[]</span>, propName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T[]</span></li>
<li class="tsd-header">
<p> Given an array of objects, maps each element to a named property of the element. </p>
</li>
<li class="tsd-signature tsd-kind-icon">pluck<span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span>, propName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span></li>
<li class="tsd-header">
<p> Given an object, maps each property of the object to a named property of the property. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Given an array of objects, maps each element to a named property of the element.</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
<h4>T</