Detailed reference of prototypes, properties and methods available in the
Javascript environment of your Helma web applications.

Adds useful methods to the JavaScript Array type.

To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/core/Array.js')
Methods
Array. indexOf(val)
Return the first index position of a value contained in an array, or -1 if it isn't contained.
parameters
Object val the value to check
returns
int the index of the first occurence of val, or -1
Array. lastIndexOf(val)
return the last index position of a value contained in an array, or -1 if it isn't contained.
parameters
Object val the value to check
returns
int the index of the first occurence of val, or -1
Array. contains(val)
check if an array passed as argument contains a specific value (start from end of array)
parameters
Object val the value to check
returns
boolean true if the value is contained
Array. union(array1)
Retrieve the union set of a bunch of arrays
parameters
Array array1
returns
Array the union set
Array. intersection(array1)
Retrieve the intersection set of a bunch of arrays
parameters
Array array1
returns
Array the intersection set
Fri, 05 Feb 2010 17:40:05 GMT.

core framework

optional modules

java libraries

properties files