Augmented.js Next Core - Structures
Stack - Standard Stack data structure
Supported options are:
- stack - an array to populate
optionsobject Options to pass
The empty method clears the stack
The peek method returns the first in the stack
Returns object Returns the first object in the stack
The pop method returns and removes the first in the stack
Returns object Returns the first object in the stack
The push method adds to the stack
itemobject The item to push to the stack
The search method returns where in the stack an item exists
item
Returns number Returns the index of the item
The size method returns the size of the stack
Returns number Returns the size of the stack
The clear method clears the stack
The toArray method returns the stack as an array
Returns array Returns the stack as an array
The toString method returns the stack as an string
Returns string Returns the stack as an string
ES6-like Map - than can marshall
myData{object} Map data to fill map
Set the value by key in the map
keystring name of the keyvalueany value for the key
Get the value by key in the map
keystring name of the key
Returns any The value for the key
Index of the key in the map
keystring name of the key
Returns number index of the key
Remove the value by key in the map
keystring name of the key
Has returns whether a key exists in the map
keystring name of the key
Returns boolean true if the key exists in the map
Iterator forEach key to value in the map
fnfunction callback for the iterator
Get the key for the index in the map
inumber index of the key
Returns object the key at index
The entries value object in the map
Returns array Array of entries value objects
The values in the map as an Array
Returns array values as an Array
Clear the map
The size of the map in keys
Returns number size of map by keys
Represent the map in JSON
Returns object JSON of the map
Represent the map in a String of JSON
Returns string Stringified JSON of the map
Checks of the map is empty (not ES6)
Returns boolean true if the map is empty
Marshalls a map
dataToMarshall must be the following type of data to parse:
JSON object with properties (key/value)
dataToMarshallAugmented.Utility.Map Data to marshall as a map
Returns boolean Returns true on success
AsynchronousQueue - An Async queue for handling async chained functions
timeoutnumber The timout period for each process in the queue (optional)
Add method for adding processes to the queue
args...any
Clear all processes in the queue
Process the queue
args...any
Get the timeout for the queue
Get the full queue