Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Unknown macro: {div}

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Enter additional information related to this 'class' inside the {div} macro with 'id=description'

Unknown macro: {div}


Unknown macro: {table}

{column:width=80px|padding=0px}{column}{column}{column}

Unknown macro: {tr}
Unknown macro: {th}

Property Summary

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Object

Unknown macro: {td}

[index]
Get an element by index.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

length
Get the length of the array.


Unknown macro: {table}

{column:width=80px|padding=0px}{column}{column}{column}

Unknown macro: {tr}
Unknown macro: {th}

Method Summary

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

concat(value1)
Returns a new array comprised of this array joined with other array(s) and/or value(s).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

concat(value1, value2)
Returns a new array comprised of this array joined with other array(s) and/or value(s).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

concat(value1, value2, valueN)
Returns a new array comprised of this array joined with other array(s) and/or value(s).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

every(callback)
Runs a function on items in the array while that function is returning true.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

every(callback, thisObject)
Runs a function on items in the array while that function is returning true.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

filter(callback)
Runs a function on every item in the array and returns an array of all items for which the function returns true.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

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.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

forEach(callback)
Runs a function (callback) on every item in the array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

forEach(callback, thisObject)
Runs a function (callback) on every item in the array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

indexOf(searchElement)
Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

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.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

isArray(obj)
Checks whether an object is an array or not.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

String

Unknown macro: {td}

join(delimiter)
Puts all elements in the array into a string, separating each element with the specified delimiter

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

lastIndexOf(searchElement)
Returns the last index at which a given element can be found in the array, or -1 if it is not present.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

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.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

map(callback)
Runs a function on every item in the array and returns the results in an array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

map(callback, thisObject)
Runs a function on every item in the array and returns the results in an array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Object

Unknown macro: {td}

pop()
Pops the last string off the array and returns it.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

push(value1)
Mutates an array by appending the given elements and returning the new length of the array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

push(value1, value2)
Mutates an array by appending the given elements and returning the new length of the array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

push(value1, value2, valueN)
Mutates an array by appending the given elements and returning the new length of the array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

reverse()
Puts array elements in reverse order.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Object

Unknown macro: {td}

shift()
Decreases array element size by one by shifting the first element off the array and returning it.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

slice(begin)
The slice method creates a new array from a selected section of an array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

slice(begin, end)
The slice method creates a new array from a selected section of an array.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

some(callback)
Runs a function on items in the array while that function returns false.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Boolean

Unknown macro: {td}

some(callback, thisObject)
Runs a function on items in the array while that function returns false.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

sort()
Sorts the array elements in dictionary order or using a compare function passed to the method.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

sort(function)
Sorts the array elements in dictionary order or using a compare function passed to the method.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

splice(arrayIndex, length)
It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

splice(arrayIndex, length, value1)
It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

splice(arrayIndex, length, value1, value2)
It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

splice(arrayIndex, length, value1, value2, valueN)
It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Array

Unknown macro: {td}

unshift(value1, value2, valueN)
Places element data at the start of an array.


Unknown macro: {table}

{column:width=100%|padding=0px}{column}

Unknown macro: {tr}
Unknown macro: {th}

Property Details

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
[index]
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Get an element by index.

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Object

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
array[0]
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
length
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Get the length of the array.

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
array.length
Unknown macro: {tr}
Unknown macro: {td}


Unknown macro: {table}

{column:width=100%|padding=0px}{column}

Unknown macro: {tr}
Unknown macro: {th}

Method Details

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
concat
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

concat

Unknown macro: {span}

(value1)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
array.concat();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
concat
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

concat

Unknown macro: {span}

(value1, value2)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1
{Object} value2

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
array.concat();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
concat
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

concat

Unknown macro: {span}

(value1, value2, valueN)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1
{Object} value2
{Object} valueN

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
array.concat();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
every
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Boolean

Unknown macro: {span}

every

Unknown macro: {span}

(callback)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on items in the array while that function is returning true. It returns true if the function returns true for every item it could visit.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Boolean

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
every
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Boolean

Unknown macro: {span}

every

Unknown macro: {span}

(callback, thisObject)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on items in the array while that function is returning true. It returns true if the function returns true for every item it could visit.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback
{Array} thisObject

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Boolean

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
filter
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

filter

Unknown macro: {span}

(callback)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on every item in the array and returns an array of all items for which the function returns true.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
filter
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

filter

Unknown macro: {span}

(callback, thisObject)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on every item in the array and returns an array of all items for which the function returns true.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback
{Array} thisObject

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
forEach
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

forEach

Unknown macro: {span}

(callback)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function (callback) on every item in the array. The callback function is invoked only for indexes of the array which have assigned values.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

void

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
function printThemOut(element, index, array) {
		application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];	
a.forEach(printThemOut);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
forEach
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

forEach

Unknown macro: {span}

(callback, thisObject)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function (callback) on every item in the array. The callback function is invoked only for indexes of the array which have assigned values.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback
{Object} thisObject

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

void

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
function printThemOut(element, index, array) {
		application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];	
a.forEach(printThemOut);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
indexOf
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

indexOf

Unknown macro: {span}

(searchElement)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} searchElement

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
indexOf
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

indexOf

Unknown macro: {span}

(searchElement, fromIndex)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} searchElement
{Number} fromIndex

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
isArray
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Boolean

Unknown macro: {span}

isArray

Unknown macro: {span}

(obj)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Checks whether an object is an array or not.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} obj

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Boolean

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = [1, 2, 3];
application.output(Array.isArray(a)); //prints true
application.output(Array.isArray(23)); //prints false
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
join
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

String

Unknown macro: {span}

join

Unknown macro: {span}

(delimiter)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Puts all elements in the array into a string, separating each element with the specified delimiter

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{String} delimiter

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

String

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var jwords = words.join(";");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
lastIndexOf
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

lastIndexOf

Unknown macro: {span}

(searchElement)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} searchElement

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
lastIndexOf
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

lastIndexOf

Unknown macro: {span}

(searchElement, fromIndex)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} searchElement
{Number} fromIndex

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
map
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

map

Unknown macro: {span}

(callback)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on every item in the array and returns the results in an array.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} callback

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = ['a', 'b', 'c'];	
var a2 = a.map(function(item) { return item.toUpperCase(); });	
application.output(a2);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
map
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

map

Unknown macro: {span}

(callback, thisObject)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on every item in the array and returns the results in an array.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} callback
{Array} thisObject

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var a = ['a', 'b', 'c'];	
var a2 = a.map(function(item) { return item.toUpperCase(); });	
application.output(a2);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
pop
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Object

Unknown macro: {span}

pop

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Pops the last string off the array and returns it.

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Object

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var lastword = words.pop();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
push
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

push

Unknown macro: {span}

(value1)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Mutates an array by appending the given elements and returning the new length of the array.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
push
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

push

Unknown macro: {span}

(value1, value2)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Mutates an array by appending the given elements and returning the new length of the array.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1
{Object} value2

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
push
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

push

Unknown macro: {span}

(value1, value2, valueN)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Mutates an array by appending the given elements and returning the new length of the array.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1
{Object} value2
{Object} valueN

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Number

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
reverse
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

reverse

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Puts array elements in reverse order.

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
words.reverse();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
shift
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Object

Unknown macro: {span}

shift

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Decreases array element size by one by shifting the first element off the array and returning it.

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Object

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
words.shift();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
slice
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

slice

Unknown macro: {span}

(begin)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

The slice method creates a new array from a selected section of an array.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} begin

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
slice
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

slice

Unknown macro: {span}

(begin, end)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

The slice method creates a new array from a selected section of an array.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} begin
{Object} end

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
some
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Boolean

Unknown macro: {span}

some

Unknown macro: {span}

(callback)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on items in the array while that function returns false. It returns true if the function returns true for any item it could visit.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Boolean

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
some
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Boolean

Unknown macro: {span}

some

Unknown macro: {span}

(callback, thisObject)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Runs a function on items in the array while that function returns false. It returns true if the function returns true for any item it could visit.
The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} callback
{Array} thisObject

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Boolean

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
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));
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
sort
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

sort

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Sorts the array elements in dictionary order or using a compare function passed to the method.

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
sort
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

sort

Unknown macro: {span}

(function)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Sorts the array elements in dictionary order or using a compare function passed to the method.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Function} function

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
splice
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

splice

Unknown macro: {span}

(arrayIndex, length)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} arrayIndex
{Object} length

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
splice
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

splice

Unknown macro: {span}

(arrayIndex, length, value1)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} arrayIndex
{Object} length
{Object} value1

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
splice
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

splice

Unknown macro: {span}

(arrayIndex, length, value1, value2)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} arrayIndex
{Object} length
{Object} value1
{Object} value2

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
splice
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

splice

Unknown macro: {span}

(arrayIndex, length, value1, value2, valueN)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

It is used to take elements out of an array and replace them with those specified.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} arrayIndex
{Object} length
{Object} value1
{Object} value2
{Object} valueN

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
unshift
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Array

Unknown macro: {span}

unshift

Unknown macro: {span}

(value1, value2, valueN)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {div}

Places element data at the start of an array.

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {div}

{Object} value1
{Object} value2
{Object} valueN

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {div}

Array

Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {div}
var words = new Array("finish","complete","In","Out");
words.unshift("limit","lines");
Unknown macro: {tr}
Unknown macro: {td}
  • No labels