static
class AFrame.EnumerableMixin
A collection of functions common to enumerable objects. When mixing in this class, the class being mixed into must define a forEach function.
Methods
| Methods | Returns | Description |
|---|---|---|
filter(
search
)
|
array
|
↑
Get a set of items in the collection using the search function. The search function will be called once for each item in the collection. Any time the search function returns true, the item will be added to the results list.
Parameters:
Returns: |
getCount(
)
|
number
|
↑
Get the current count of items
Returns:
|
search(
search
)
|
item
|
↑
Search for the first item in the collection that matches the search function.
Parameters:
Returns: |