Native Array vs. 1.1.0 Full+Lite

An Array object is a variable that groups related pieces of data. A unique number, called an index or subscript, references each piece of data in the array. To access the data stored in the array, the array identifier and the index are combined with the index operator "[]", for example, theMonths[0]. More information can be found at MSDN or MDN

The NoGray JavaScript Library extends the Array object with commonly used methods.

Methods

Function Array.clone () vs. 1.1.0 Full+Lite
Will return a new duplicate of the array. This function does a shallow cloning only. If the array contains other arrays, they will be cloned by reference only.
Function Array.each (func, bind, args) vs. 1.1.0 Full+Lite
Iterate and execute a function over each of the array values. The function will receive the current value and the key plus any arguments passed to the each function.
Function Array.r_each (func, bind, args) vs. 1.1.0 Full+Lite
Same as Array.each but in reverse direction.
Function Array.get_key (val, func) vs. 1.1.0 Full+Lite
Return the array key or index for the given value.
Function Array.has (val) vs. 1.1.0 Full+Lite
Check if the array has a value.
Function Array.unique () vs. 1.1.0 Full+Lite
Returns a new array with all duplicates removed.
Function Array.remove_value (val, func) vs. 1.1.0 Full+Lite
Removes a given value from the array.
Function Array.remove_key (key) vs. 1.1.0 Full+Lite
Remove a value from the array by it's key or key.
Function Array.empty () vs. 1.1.0 Full+Lite
Clears all the array values.
Function Array.to_query () vs. 1.1.0 FULL ONLY
Create a URL query formatted string from the array.
Function Array.to_json () vs. 1.1.0 FULL ONLY
Create a JSON string from the array.