Constructor
new Queue()
- Description:
- Create a Queue object
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
entries |
Array | Array of entries | ||
index |
number |
<optional> |
0
|
Current index |
entry |
Object | Current entry |
Methods
entries(value)
- Description:
- Set entries
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Array | Array of entries |
entries() → {Array}
- Description:
- Get entries
- Source:
Returns:
Array of entries
- Type
- Array
entry()
- Description:
- Pushes in an entry
- Source:
entry() → {Object}
- Description:
- Get current entry
- Source:
Returns:
Current entry
- Type
- Object
index() → {number}
- Description:
- Get index
- Source:
Returns:
Current index value
- Type
- number
isEnd() → {boolean}
- Description:
- Returns whether this queue is at its end
- Source:
Returns:
True || False
- Type
- boolean
isLast() → {boolean}
- Description:
- Returns whether this queue is on its last element
- Source:
Returns:
True || False
- Type
- boolean
isSet() → {boolean}
- Description:
- Returns whether this queue is set, or populated
- Source:
Returns:
True || False
- Type
- boolean
next() → {Object}
- Description:
- Returns next entry; begins with [ 0 ], or first entry
- Source:
Returns:
Next entry
- Type
- Object
reset()
- Description:
- Resets index to 0
- Source: