Class JekArray
Defined in: JekFk.js.
Constructor Summary
Field Summary
items
All items
Method Summary
Constructor Detail
new JekArray(array[optional])
JekArray
- Parameters:
- {Array} array[optional]
- default value = new Array()
- Returns:
- {JekArray}
Method Detail
contains(value)
: Boolean
Returns true if this array contains the specified element(==).
Parameters:
{any} | value |
Returns:
{Boolean} |
containsEx(value)
: Boolean
Contains Exactly
Returns true if this array contains the specified element(===).
Returns true if this array contains the specified element(===).
Parameters:
{any} | value |
Returns:
{Boolean} |
indexOf(value)
: Number
Returns the position of the first occurrence of the argument within the
array(==). If the argument doesn't exist in the array, returns -1.
Parameters:
{any} | value |
Returns:
{Number} |
indexOfEx(value)
: Number
IndexOf Exactly
Returns the position of the first occurrence of the argument within the array(===). If the argument doesn't exist in the array, returns -1.
Returns the position of the first occurrence of the argument within the array(===). If the argument doesn't exist in the array, returns -1.
Parameters:
{any} | value |
Returns:
{Number} |
add(value)
: Array
Appends the specified element to the end of this array.
Parameters:
{any} | value |
Returns:
{Array} |
set(index, value)
: Boolean
Replaces the element at the specified position in this array with the
specified element.
Parameters:
{Number} | index | |
{any} | value |
Returns:
{Boolean} |
remove(index)
: any
Removes the element at the specified position in the array
Parameters:
{Number} | index |
Returns:
{any} |
get(index)
: any
Returns the element at the specified position in this array.
Parameters:
{Number} | index |
Returns:
{any} |
min()
: Number|String
Returns the minimum element of this array, according to the natural
ordering of its elements.
Returns:
{Number|String} |