Function Namespace Pot.iterate
Defined in: <potlite.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Pot.iterate(object, callback, (context))
Iterate an iterable object.
|
Field Attributes | Field Name and Description |
---|---|
Iterates "iterate" loop with slower speed.
|
|
Iterates "iterate" loop with fast speed.
|
|
Iterates "iterate" loop with slowest speed.
|
|
Iterates "iterate" loop with fastest speed.
|
|
Iterates "iterate" loop with default speed.
|
|
Iterates "iterate" loop with faster speed.
|
|
Iterates "iterate" loop with slow speed.
|
Function Namespace Detail
Pot.iterate(object, callback, (context))
Iterate an iterable object. (using Pot.Iter)
- Parameters:
- {*} object
- An iterable object.
- {Function} callback
- An iterable function. function(value, key, object) this == `context`. Throw Pot.StopIteration if you want to stop the loop.
- {Object} (context)
- Optionally, context object. (i.e. this)
- Returns:
- {*} Result of iteration.
Field Detail
{Function}
doze
Iterates "iterate" loop with slower speed.
{Function}
fast
Iterates "iterate" loop with fast speed.
{Function}
limp
Iterates "iterate" loop with slowest speed.
{Function}
ninja
Iterates "iterate" loop with fastest speed.
{Function}
normal
Iterates "iterate" loop with default speed.
{Function}
rapid
Iterates "iterate" loop with faster speed.
{Function}
slow
Iterates "iterate" loop with slow speed.