JekFk API
 
Jek
«
JekFk JavaScript Framework

Namespace Jek.array

Defined in: JekFk.js.

Method Summary
min(array) Returns the minimum element of the given array, according to the natural ordering of its elements.
max(array) Returns the maximum element of the given array, according to the natural ordering of its elements.
indexOf(array, value) Returns the position of the first occurrence of the argument within the array(==).
indexOfEx(array, value) IndexOf Exactly
Returns the position of the first occurrence of the argument within the array(===).
contains(array, value) Returns true if this array contains the specified element(==).
containsEx(array, value) Contains Exactly
Returns true if this array contains the specified element(===).
remove(array, index) Removes the element at the specified position in the array
unique(array) Return a new array with no duplicates
Method Detail
Jek.array.min(array) : Number|String
Returns the minimum element of the given array, according to the natural ordering of its elements.
Parameters:
{Array} array
Returns:
{Number|String}
Jek.array.max(array) : Number|String
Returns the maximum element of the given array, according to the natural ordering of its elements.
Parameters:
{Array} array
Returns:
{Number|String}
Jek.array.indexOf(array, 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:
{Array} array
{any} value
Returns:
{Number}
Jek.array.indexOfEx(array, 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:
{Array} array
{any} value
Returns:
{Number}
Jek.array.contains(array, value) : Boolean
Returns true if this array contains the specified element(==).
Parameters:
{Array} array
{any} value
Returns:
{Boolean}
Jek.array.containsEx(array, value) : Boolean
Contains Exactly
Returns true if this array contains the specified element(===).
Parameters:
{Array} array
{any} value
Returns:
{Boolean}
Jek.array.remove(array, index) : Object
Removes the element at the specified position in the array
Parameters:
{Array} array
{Number} index
Returns:
{Object}
Jek.array.unique(array) : Array
Return a new array with no duplicates
Parameters:
{Array} array
Returns:
{Array}
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Oct 08 2011 15:54:12 GMT+0200 (CEST)