JekFk API
 
Jek
«
JekFk JavaScript Framework

Class JekArray

Defined in: JekFk.js.

Constructor Summary
new JekArray (array[optional]) JekArray
Field Summary
items All items
Method Summary
size() Returns the number of elements in this array
contains(value) Returns true if this array contains the specified element(==).
containsEx(value) Contains Exactly
Returns true if this array contains the specified element(===).
indexOf(value) Returns the position of the first occurrence of the argument within the array(==).
indexOfEx(value) IndexOf Exactly
Returns the position of the first occurrence of the argument within the array(===).
add(value) Appends the specified element to the end of this array.
set(index, value) Replaces the element at the specified position in this array with the specified element.
remove(index) Removes the element at the specified position in the array
get(index) Returns the element at the specified position in this array.
getLast() Returns the last element.
min() Returns the minimum element of this array, according to the natural ordering of its elements.
max() Returns the maximum element of this array, according to the natural ordering of its elements.
unique()
each(fn, scope[optional]) Iterates on array calling the supplied function.
Constructor Detail
new JekArray(array[optional])
JekArray
Parameters:
{Array} array[optional]
default value = new Array()
Returns:
{JekArray}
Field Detail
items : Array
All items
Method Detail
size() : Number
Returns the number of elements in this array
Returns:
{Number}
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(===).
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.
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}
getLast() : any
Returns the last element.
Returns:
{any}
min() : Number|String
Returns the minimum element of this array, according to the natural ordering of its elements.
Returns:
{Number|String}
max() : Number|String
Returns the maximum element of this array, according to the natural ordering of its elements.
Returns:
{Number|String}
unique() : Array
Returns:
{Array}
each(fn, scope[optional]) : any
Iterates on array calling the supplied function.
Example:
JekArray.each(function(key, value) {
...
});
Example:
JekArray.each(function(key, value) {
...
}, scope);
Parameters:
{Function} fn
{Object} scope[optional] default value = entry
Returns:
{any}
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Oct 08 2011 15:54:12 GMT+0200 (CEST)