Class: SelectIterable

SelectIterable()

new SelectIterable()

Creates a SelectIterable instance from an array. Created internally from Select.prototype.for, and not exported.
Source:

Methods

for(test, consequent) → {SelectIterable}

Accepts a test and consequent function each and returns a new SelectIterable instance.
Parameters:
Name Type Description
test Test test callback function
consequent function consequent callback function
Source:
Returns:
- an instance of SelectIterable
Type
SelectIterable

SelectIterable(values, tests)

new SelectIterable(values, tests)

Parameters:
Name Type Description
values array array created from Select.prototype.for
tests Array.<function()> array of { test, consequent } objects
Properties
Name Type Description
test function test function
consequent function consequent function
Source:

Methods

for(test, consequent) → {SelectIterable}

Accepts a test and consequent function each and returns a new SelectIterable instance.
Parameters:
Name Type Description
test Test test callback function
consequent function consequent callback function
Source:
Returns:
- an instance of SelectIterable
Type
SelectIterable

SelectIterable(value, resolve)

new SelectIterable(value, resolve)

Parameters:
Name Type Description
value any the input value
resolve function optional resolve function
Source:

Methods

for(test, consequent) → {SelectIterable}

Accepts a test and consequent function each and returns a new SelectIterable instance.
Parameters:
Name Type Description
test Test test callback function
consequent function consequent callback function
Source:
Returns:
- an instance of SelectIterable
Type
SelectIterable