<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: SelectIterable</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: SelectIterable</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>SelectIterable<span class="signature">()</span><span class="type-signature"></span></h2> </header> <article> <div class="container-overview"> <h4 class="name" id="SelectIterable"><span class="type-signature"></span>new SelectIterable<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> Creates a SelectIterable instance from an array. Created internally from Select.prototype.for, and not exported. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Select.js.html">Select.js</a>, <a href="Select.js.html#line38">line 38</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="for"><span class="type-signature"></span>for<span class="signature">(test, consequent)</span><span class="type-signature"> → {<a href="SelectIterable.html">SelectIterable</a>}</span></h4> <div class="description"> Accepts a test and consequent function each and returns a new SelectIterable instance. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>test</code></td> <td class="type"> <span class="param-type">Test</span> </td> <td class="description last">test callback function</td> </tr> <tr> <td class="name"><code>consequent</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">consequent callback function</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Select.js.html">Select.js</a>, <a href="Select.js.html#line68">line 68</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> - an instance of SelectIterable </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="SelectIterable.html">SelectIterable</a></span> </dd> </dl> </article> </section> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>SelectIterable<span class="signature">(values, tests)</span><span class="type-signature"></span></h2> </header> <article> <div class="container-overview"> <h4 class="name" id="SelectIterable"><span class="type-signature"></span>new SelectIterable<span class="signature">(values, tests)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>values</code></td> <td class="type"> <span class="param-type">array</span> </td> <td class="description last">array created from Select.prototype.for</td> </tr> <tr> <td class="name"><code>tests</code></td> <td class="type"> <span class="param-type">Array.<function()></span> </td> <td class="description last">array of { test, consequent } objects <h6>Properties</h6> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>test</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">test function</td> </tr> <tr> <td class="name"><code>consequent</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">consequent function</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Select.js.html">Select.js</a>, <a href="Select.js.html#line51">line 51</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="for"><span class="type-signature"></span>for<span class="signature">(test, consequent)</span><span class="type-signature"> → {<a href="SelectIterable.html">SelectIterable</a>}</span></h4> <div class="description"> Accepts a test and consequent function each and returns a new SelectIterable instance. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>test</code></td> <td class="type"> <span class="param-type">Test</span> </td> <td class="description last">test callback function</td> </tr> <tr> <td class="name"><code>consequent</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">consequent callback function</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Select.js.html">Select.js</a>, <a href="Select.js.html#line68">line 68</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> - an instance of SelectIterable </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="SelectIterable.html">SelectIterable</a></span> </dd> </dl> </article> </section> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>SelectIterable<span class="signature">(value, resolve)</span><span class="type-signature"></span></h2> </header> <article> <div class="container-overview"> <h4 class="name" id="SelectIterable"><span class="type-signature"></span>new SelectIterable<span class="signature">(value, resolve)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>value</code></td> <td class="type"> <span class="param-type">any</span> </td> <td class="description last">the input value</td> </tr> <tr> <td class="name"><code>resolve</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">optional resolve function</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Select.js.html">Select.js</a>, <a href="Select.js.html#line22">line 22</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="for"><span class="type-signature"></span>for<span class="signature">(test, consequent)</span><span class="type-signature"> → {<a href="SelectIterable.html">SelectIterable</a>}</span></h4> <div class="description"> Accepts a test and consequent function each and returns a new SelectIterable instance. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>test</code></td> <td class="type"> <span class="param-type">Test</span> </td> <td class="description last">test callback function</td> </tr> <tr> <td class="name"><code>consequent</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">consequent callback function</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Select.js.html">Select.js</a>, <a href="Select.js.html#line68">line 68</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> - an instance of SelectIterable </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="SelectIterable.html">SelectIterable</a></span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Select.html">Select</a></li><li><a href="SelectIterable.html">SelectIterable</a></li><li><a href="SelectValue.html">SelectValue</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 10 2018 04:36:07 GMT+0530 (IST) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>