Class: Select

Select()

new Select()

Creates a new Select instance.
Source:

Extends

Methods

for(test, consequent) → {Select|SelectIterable}

Accepts a test and consequent function each and returns a new Select or SelectIterable instance.
Parameters:
Name Type Description
test function test callback function
consequent function consequent callback function
Source:
Returns:
- Returns a SelectIterable instance if value was array, or a Select instance otherwise
Type
Select | SelectIterable

resolve() → {object}

Default resolve prototype. Returns null when called. Used in case a resolve is never set.
Inherited From:
Source:
Returns:
null
Type
object

Select(value, resolve)

new Select(value, resolve)

Parameters:
Name Type Description
value any | array the value or array of values to check against
resolve function optional resolve function
Source:

Methods

for(test, consequent) → {Select|SelectIterable}

Accepts a test and consequent function each and returns a new Select or SelectIterable instance.
Parameters:
Name Type Description
test function test callback function
consequent function consequent callback function
Source:
Returns:
- Returns a SelectIterable instance if value was array, or a Select instance otherwise
Type
Select | SelectIterable

resolve() → {object}

Default resolve prototype. Returns null when called. Used in case a resolve is never set.
Inherited From:
Source:
Returns:
null
Type
object