Mar 28, 2024 10:42 Returns Supported Clients Sample Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Supported Clients Sample Parameters Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Returns Supported Clients Sample Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients SampleSupported Clients
SmartClient
WebClient
NGClient
MobileClient
Property Summary
Object
[index]
Get an element by index.
Number
length
Get the length of the array.
Methods Summary
Array
concat(value1)
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Array
concat(value1, value2)
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Array
concat(value1, value2, valueN)
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Boolean
every(callback)
Runs a function on items in the array while that function is returning true.
Boolean
every(callback, thisObject)
Runs a function on items in the array while that function is returning true.
Array
filter(callback)
Runs a function on every item in the array and returns an array of all items for which the function returns true.
Array
filter(callback, thisObject)
Runs a function on every item in the array and returns an array of all items for which the function returns true.
void
forEach(callback)
Runs a function (callback) on every item in the array.
void
forEach(callback, thisObject)
Runs a function (callback) on every item in the array.
Number
indexOf(searchElement)
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
Number
indexOf(searchElement, fromIndex)
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
Boolean
isArray(obj)
Checks whether an object is an array or not.
String
join(delimiter)
Puts all elements in the array into a string, separating each element with the specified delimiter
Number
lastIndexOf(searchElement)
Returns the last index at which a given element can be found in the array, or -1 if it is not present.
Number
lastIndexOf(searchElement, fromIndex)
Returns the last index at which a given element can be found in the array, or -1 if it is not present.
Array
map(callback)
Runs a function on every item in the array and returns the results in an array.
Array
map(callback, thisObject)
Runs a function on every item in the array and returns the results in an array.
Object
pop()
Pops the last string off the array and returns it.
Number
push(value1)
Mutates an array by appending the given elements and returning the new length of the array.
Number
push(value1, value2)
Mutates an array by appending the given elements and returning the new length of the array.
Number
push(value1, value2, valueN)
Mutates an array by appending the given elements and returning the new length of the array.
Array
reverse()
Puts array elements in reverse order.
Object
shift()
Decreases array element size by one by shifting the first element off the array and returning it.
Array
slice(begin)
The slice method creates a new array from a selected section of an array.
Array
slice(begin, end)
The slice method creates a new array from a selected section of an array.
Boolean
some(callback)
Runs a function on items in the array while that function returns false.
Boolean
some(callback, thisObject)
Runs a function on items in the array while that function returns false.
Array
sort()
Sorts the array elements in dictionary order or using a compare function passed to the method.
Array
sort(function)
Sorts the array elements in dictionary order or using a compare function passed to the method.
Array
splice(arrayIndex, length)
It is used to take elements out of an array and replace them with those specified.
Array
splice(arrayIndex, length, value1)
It is used to take elements out of an array and replace them with those specified.
Array
splice(arrayIndex, length, value1, value2)
It is used to take elements out of an array and replace them with those specified.
Array
splice(arrayIndex, length, value1, value2, valueN)
It is used to take elements out of an array and replace them with those specified.
Number
unshift(value1, value2, valueN)
Places element data at the start of an array.
Property Details
[index]
array[0]
length
array.length
Methods Details
concat(value1)
Object
value1
array.concat();
concat(value1, value2)
Object
value1
Object
value2
array.concat();
concat(value1, value2, valueN)
Object
value1
Object
value2
Object
valueN
array.concat();
every(callback)
Function
callback
function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.every(isNumber));
var a2 = [1, '2', 3];
application.output(a2.every(isNumber));
every(callback, thisObject)
Function
callback
Array
thisObject
function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.every(isNumber));
var a2 = [1, '2', 3];
application.output(a2.every(isNumber));
filter(callback)
Function
callback
var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);
filter(callback, thisObject)
Function
callback
Array
thisObject
var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);
forEach(callback)
Function
callback
function printThemOut(element, index, array) {
application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];
a.forEach(printThemOut);
forEach(callback, thisObject)
Function
callback
Object
thisObject
function printThemOut(element, index, array) {
application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];
a.forEach(printThemOut);
indexOf(searchElement)
Object
searchElement
var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));
indexOf(searchElement, fromIndex)
Object
searchElement
Number
fromIndex
var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));
isArray(obj)
Object
obj
var a = [1, 2, 3];
application.output(Array.isArray(a)); //prints true
application.output(Array.isArray(23)); //prints false
join(delimiter)
String
delimiter
var words = new Array("limit","lines","finish","complete","In","Out");
var jwords = words.join(";");
lastIndexOf(searchElement)
Object
searchElement
var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));
lastIndexOf(searchElement, fromIndex)
Object
searchElement
Number
fromIndex
var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));
map(callback)
Object
callback
var a = ['a', 'b', 'c'];
var a2 = a.map(function(item) { return item.toUpperCase(); });
application.output(a2);
map(callback, thisObject)
Object
callback
Array
thisObject
var a = ['a', 'b', 'c'];
var a2 = a.map(function(item) { return item.toUpperCase(); });
application.output(a2);
pop()
var words = new Array("limit","lines","finish","complete","In","Out");
var lastword = words.pop();
push(value1)
Object
value1
var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
push(value1, value2)
Object
value1
Object
value2
var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
push(value1, value2, valueN)
Object
value1
Object
value2
Object
valueN
var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
reverse()
var words = new Array("limit","lines","finish","complete","In","Out");
words.reverse();
shift()
var words = new Array("limit","lines","finish","complete","In","Out");
words.shift();
slice(begin)
Object
begin
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);
slice(begin, end)
Object
begin
Object
end
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);
some(callback)
Function
callback
function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.some(isNumber));
var a2 = [1, '2', 3];
application.output(a2.some(isNumber));
some(callback, thisObject)
Function
callback
Array
thisObject
function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.some(isNumber));
var a2 = [1, '2', 3];
application.output(a2.some(isNumber));
sort()
var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();
sort(function)
Function
function
var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();
splice(arrayIndex, length)
Object
arrayIndex
Object
length
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
splice(arrayIndex, length, value1)
Object
arrayIndex
Object
length
Object
value1
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
splice(arrayIndex, length, value1, value2)
Object
arrayIndex
Object
length
Object
value1
Object
value2
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
splice(arrayIndex, length, value1, value2, valueN)
Object
arrayIndex
Object
length
Object
value1
Object
value2
Object
valueN
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
unshift(value1, value2, valueN)
Object
value1
Object
value2
Object
valueN
var words = new Array("finish","complete","In","Out");
words.unshift("limit","lines");