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(===).
Returns the position of the first occurrence of the argument within the array(===).
containsEx(array, value)
Contains Exactly
Returns true if this array contains the specified element(===).
Returns true if this array contains the specified element(===).
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.
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(===).
Returns true if this array contains the specified element(===).
Parameters:
{Array} | array | |
{any} | value |
Returns:
{Boolean} |