Child pages
  • Array

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
{div:style=}
Wiki Markup
Div
styledisplay:none

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



Enter additional information related to this 'class'

inside

the

\

{div}

macro

with

'id=description'

{div} {div:id=description}{div}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Object]{td}{td}[\[index\]|#\[index\]] Get an element by index.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#length] Get the length of the array.{td}{tr}{tbody}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Array]{td}{td}[#concat]\(value1) Returns a new array comprised of this array joined with other array(s) and/or value(s).{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#concat]\(value1, value2) Returns a new array comprised of this array joined with other array(s) and/or value(s).{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#concat]\(value1, value2, valueN) Returns a new array comprised of this array joined with other array(s) and/or value(s).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#every]\(callback) Runs a function on items in the array while that function is returning true.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#every]\(callback, thisObject) Runs a function on items in the array while that function is returning true.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#forEach]\(callback) Runs a function (callback) on every item in the array.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#forEach]\(callback, thisObject) Runs a function (callback) on every item in the array.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isArray]\(obj) Checks whether an object is an array or not.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#join]\(delimiter) Puts all elements in the array into a string, separating each element with the specified delimiter{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#map]\(callback) Runs a function on every item in the array and returns the results in an array.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#map]\(callback, thisObject) Runs a function on every item in the array and returns the results in an array.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#pop]\() Pops the last string off the array and returns it.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#push]\(value1) Mutates an array by appending the given elements and returning the new length of the array.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#push]\(value1, value2) Mutates an array by appending the given elements and returning the new length of the array.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#push]\(value1, value2, valueN) Mutates an array by appending the given elements and returning the new length of the array.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#reverse]\() Puts array elements in reverse order.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#shift]\() Decreases array element size by one by shifting the first element off the array and returning it.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#slice]\(begin) The slice method creates a new array from a selected section of an array.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#slice]\(begin, end) The slice method creates a new array from a selected section of an array.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#some]\(callback) Runs a function on items in the array while that function returns false.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#some]\(callback, thisObject) Runs a function on items in the array while that function returns false.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#sort]\() Sorts the array elements in dictionary order or using a compare function passed to the method.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#sort]\(function) Sorts the array elements in dictionary order or using a compare function passed to the method.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#splice]\(arrayIndex, length) It is used to take elements out of an array and replace them with those specified.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#splice]\(arrayIndex, length, value1) It is used to take elements out of an array and replace them with those specified.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#splice]\(arrayIndex, length, value1, value2) It is used to take elements out of an array and replace them with those specified.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#splice]\(arrayIndex, length, value1, value2, valueN) It is used to take elements out of an array and replace them with those specified.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#unshift]\(value1, value2, valueN) Places element data at the start of an array.{td}{tr}{tbody}{table}\\ {table:id=property|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=[index]}{tr:id=name}{td}h6.\[index\]{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get an element by index.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} array[0] {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=length}{tr:id=name}{td}h6.length{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the length of the array.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} array.length {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=concat-Object}{tr:id=name}{td}h6.concat{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}concat{span}{span}\(value1){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns a new array comprised of this array joined with other array(s) and/or value(s).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} array.concat(); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=concat-Object_Object}{tr:id=name}{td}h6.concat{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}concat{span}{span}\(value1, value2){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns a new array comprised of this array joined with other array(s) and/or value(s).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 \{[Object]} value2 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} array.concat(); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=concat-Object_Object_Object}{tr:id=name}{td}h6.concat{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}concat{span}{span}\(value1, value2, valueN){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns a new array comprised of this array joined with other array(s) and/or value(s).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 \{[Object]} value2 \{[Object]} valueN {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} array.concat(); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=every-Function}{tr:id=name}{td}h6.every{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}every{span}{span}\(callback){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Div
iddescription


HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
[index]
Get an element by index.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#length
Get the length of the array.

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#concat(value1)
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#concat(value1, value2)
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#concat(value1, value2, valueN)
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#every(callback)
Runs a function on items in the array while that function is returning true.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#every(callback, thisObject)
Runs a function on items in the array while that function is returning true.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#forEach(callback)
Runs a function (callback) on every item in the array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#forEach(callback, thisObject)
Runs a function (callback) on every item in the array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#isArray(obj)
Checks whether an object is an array or not.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#join(delimiter)
Puts all elements in the array into a string, separating each element with the specified delimiter
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (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.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#map(callback)
Runs a function on every item in the array and returns the results in an array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#map(callback, thisObject)
Runs a function on every item in the array and returns the results in an array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
#pop()
Pops the last string off the array and returns it.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#push(value1)
Mutates an array by appending the given elements and returning the new length of the array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#push(value1, value2)
Mutates an array by appending the given elements and returning the new length of the array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#push(value1, value2, valueN)
Mutates an array by appending the given elements and returning the new length of the array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#reverse()
Puts array elements in reverse order.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
#shift()
Decreases array element size by one by shifting the first element off the array and returning it.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#slice(begin)
The slice method creates a new array from a selected section of an array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#slice(begin, end)
The slice method creates a new array from a selected section of an array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#some(callback)
Runs a function on items in the array while that function returns false.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#some(callback, thisObject)
Runs a function on items in the array while that function returns false.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#sort()
Sorts the array elements in dictionary order or using a compare function passed to the method.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#sort(function)
Sorts the array elements in dictionary order or using a compare function passed to the method.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#splice(arrayIndex, length)
It is used to take elements out of an array and replace them with those specified.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#splice(arrayIndex, length, value1)
It is used to take elements out of an array and replace them with those specified.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#splice(arrayIndex, length, value1, value2)
It is used to take elements out of an array and replace them with those specified.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#splice(arrayIndex, length, value1, value2, valueN)
It is used to take elements out of an array and replace them with those specified.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#unshift(value1, value2, valueN)
Places element data at the start of an array.

HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Property Details
Table Body (tbody)
id[index]
Table Row (tr)
idname
Table Cell (td)
[index]
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get an element by index.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

array[0]
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idlength
Table Row (tr)
idname
Table Cell (td)
length
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the length of the array.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

array.length
Table Row (tr)
classlastDetailRow
Table Cell (td)


HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idconcat-Object
Table Row (tr)
idname
Table Cell (td)
concat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
concat
Span
(value1)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

array.concat();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idconcat-Object_Object
Table Row (tr)
idname
Table Cell (td)
concat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
concat
Span
(value1, value2)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
{Object} value2
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

array.concat();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idconcat-Object_Object_Object
Table Row (tr)
idname
Table Cell (td)
concat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
concat
Span
(value1, value2, valueN)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a new array comprised of this array joined with other array(s) and/or value(s).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
{Object} value2
{Object} valueN
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

array.concat();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idevery-Function
Table Row (tr)
idname
Table Cell (td)
every
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
every
Span
(callback)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

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));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idevery-Function_Array
}{
Table Row (tr)
:
id
=
name
}{td}h6.every{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
every
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
every
{span}{span}\
Span
(callback,
thisObject)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback \{[Array]} thisObject {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
{Array} thisObject
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

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));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=filter-Function}{tr:id=name}{td}h6.filter{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}filter{span}{span}\(callback){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idfilter-Function
Table Row (tr)
idname
Table Cell (td)
filter
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
filter
Span
(callback)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2)
; {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
;
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idfilter-Function_Array
}{
Table Row (tr)
:
id
=
name
}{td}h6.filter{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
filter
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
filter
{span}{span}\
Span
(callback,
thisObject)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback \{[Array]} thisObject {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
{Array} thisObject
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=forEach-Function}{tr:id=name}{td}h6.forEach{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}forEach{span}{span}\(callback){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idforEach-Function
Table Row (tr)
idname
Table Cell (td)
forEach
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
forEach
Span
(callback)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

function printThemOut(element, index, array) {
		application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];	
a.forEach(printThemOut);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idforEach-Function_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.forEach{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
forEach
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
forEach
{span}{span}\
Span
(callback,
thisObject)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback \{[Object]} thisObject {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
{Object} thisObject
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

function printThemOut(element, index, array) {
		application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];	
a.forEach(printThemOut);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=indexOf-Object}{tr:id=name}{td}h6.indexOf{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}indexOf{span}{span}\(searchElement){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the first index at which a given element can be found in the array, or \-1 if it is not present.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} searchElement {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idindexOf-Object
Table Row (tr)
idname
Table Cell (td)
indexOf
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
indexOf
Span
(searchElement)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} searchElement
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idindexOf-Object_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.indexOf{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
indexOf
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Number
]{span}{span:style=
Span
stylefont-weight:
bold;
}
indexOf
{span}{span}\
Span
(searchElement,
fromIndex)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the first index at which a given element can be found in the array, or \-1 if it is not present.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} searchElement \{[Number]} fromIndex {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} searchElement
{Number} fromIndex
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isArray-Object}{tr:id=name}{td}h6.isArray{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}isArray{span}{span}\(obj){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Checks whether an object is an array or not.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} obj {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idisArray-Object
Table Row (tr)
idname
Table Cell (td)
isArray
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isArray
Span
(obj)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Checks whether an object is an array or not.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} obj
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = [1, 2, 3];
application.output(Array.isArray(a)); //prints true
application.output(Array.isArray(23)); //prints false
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=join-String}{tr:id=name}{td}h6.join{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}join{span}{span}\(delimiter){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Puts all elements in the array into a string, separating each element with the specified delimiter{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} delimiter {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idjoin-String
Table Row (tr)
idname
Table Cell (td)
join
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
join
Span
(delimiter)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Puts all elements in the array into a string, separating each element with the specified delimiter
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} delimiter
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var jwords = words.join(";");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=lastIndexOf-Object}{tr:id=name}{td}h6.lastIndexOf{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}lastIndexOf{span}{span}\(searchElement){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} searchElement {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idlastIndexOf-Object
Table Row (tr)
idname
Table Cell (td)
lastIndexOf
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
lastIndexOf
Span
(searchElement)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} searchElement
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idlastIndexOf-Object_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.lastIndexOf{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
lastIndexOf
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Number
]{span}{span:style=
Span
stylefont-weight:
bold;
}
lastIndexOf
{span}{span}\
Span
(searchElement,
fromIndex)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} searchElement \{[Number]} fromIndex {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} searchElement
{Number} fromIndex
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=map-Object}{tr:id=name}{td}h6.map{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}map{span}{span}\(callback){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} callback {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idmap-Object
Table Row (tr)
idname
Table Cell (td)
map
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
map
Span
(callback)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} callback
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = ['a', 'b', 'c'];	
var a2 = a.map(function(item) { return item.toUpperCase(); });	
application.output(a2);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idmap-Object_Array
}{
Table Row (tr)
:
id
=
name
}{td}h6.map{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
map
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
map
{span}{span}\
Span
(callback,
thisObject)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} callback \{[Array]} thisObject {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} callback
{Array} thisObject
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var a = ['a', 'b', 'c'];	
var a2 = a.map(function(item) { return item.toUpperCase(); });	
application.output(a2);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=pop}{tr:id=name}{td}h6.pop{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Object]{span}{span:style=font-weight: bold;}pop{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Pops the last string off the array and returns it.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpop
Table Row (tr)
idname
Table Cell (td)
pop
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Object
Span
stylefont-weight: bold;
pop
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Pops the last string off the array and returns it.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var lastword = words.pop();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=push-Object}{tr:id=name}{td}h6.push{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}push{span}{span}\(value1){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Mutates an array by appending the given elements and returning the new length of the array.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpush-Object
Table Row (tr)
idname
Table Cell (td)
push
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
push
Span
(value1)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Mutates an array by appending the given elements and returning the new length of the array.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpush-Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.push{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
push
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[Number]{span}{span:style=
Number
Span
stylefont-weight:
bold;
}
push
{span}{span}\
Span
(value1,
value2)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Mutates an array by appending the given elements and returning the new length of the array.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 \{[Object]} value2 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Mutates an array by appending the given elements and returning the new length of the array.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
{Object} value2
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpush-Object_Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.push{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
push
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Number
]{span}{span:style=
Span
stylefont-weight:
bold;
}
push
{span}{span}\
Span
(value1,
value2,
valueN)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Mutates an array by appending the given elements and returning the new length of the array.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 \{[Object]} value2 \{[Object]} valueN {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Mutates an array by appending the given elements and returning the new length of the array.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
{Object} value2
{Object} valueN
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete");
words.push("In","Out");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=reverse}{tr:id=name}{td}h6.reverse{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}reverse{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Puts array elements in reverse order.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idreverse
Table Row (tr)
idname
Table Cell (td)
reverse
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
reverse
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Puts array elements in reverse order.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
words.
reverse(); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=shift}{tr:id=name}{td}h6.shift{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Object]{span}{span:style=font-weight: bold;}shift{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Decreases array element size by one by shifting the first element off the array and returning it.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
reverse();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshift
Table Row (tr)
idname
Table Cell (td)
shift
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Object
Span
stylefont-weight: bold;
shift
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Decreases array element size by one by shifting the first element off the array and returning it.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
words.shift();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=slice-Object}{tr:id=name}{td}h6.slice{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}slice{span}{span}\(begin){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}The slice method creates a new array from a selected section of an array.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} begin {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idslice-Object
Table Row (tr)
idname
Table Cell (td)
slice
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
slice
Span
(begin)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The slice method creates a new array from a selected section of an array.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} begin
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idslice-Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.slice{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
slice
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
slice
{span}{span}\
Span
(begin,
end)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}The slice method creates a new array from a selected section of an array.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} begin \{[Object]} end {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The slice method creates a new array from a selected section of an array.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} begin
{Object} end
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=some-Function}{tr:id=name}{td}h6.some{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}some{span}{span}\(callback){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsome-Function
Table Row (tr)
idname
Table Cell (td)
some
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
some
Span
(callback)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

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));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsome-Function_Array
}{
Table Row (tr)
:
id
=
name
}{td}h6.some{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
some
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
some
{span}{span}\
Span
(callback,
thisObject)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} callback \{[Array]} thisObject {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} callback
{Array} thisObject
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

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));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sort}{tr:id=name}{td}h6.sort{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}sort{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Sorts the array elements in dictionary order or using a compare function passed to the method.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsort
Table Row (tr)
idname
Table Cell (td)
sort
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
sort
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sorts the array elements in dictionary order or using a compare function passed to the method.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sort-Function}{tr:id=name}{td}h6.sort{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}sort{span}{span}\(function){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Sorts the array elements in dictionary order or using a compare function passed to the method.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Function]} function {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsort-Function
Table Row (tr)
idname
Table Cell (td)
sort
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
sort
Span
(function)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sorts the array elements in dictionary order or using a compare function passed to the method.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Function} function
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsplice-Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.splice{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
splice
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
splice
{span}{span}\
Span
(arrayIndex,
length)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}It is used to take elements out of an array and replace them with those specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} arrayIndex \{[Object]} length {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
It is used to take elements out of an array and replace them with those specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arrayIndex
{Object} length
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsplice-Object_Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.splice{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
splice
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
splice
{span}{span}\
Span
(arrayIndex,
length,
value1)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}It is used to take elements out of an array and replace them with those specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} arrayIndex \{[Object]} length \{[Object]} value1 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
It is used to take elements out of an array and replace them with those specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arrayIndex
{Object} length
{Object} value1
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsplice-Object_Object_Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.splice{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
splice
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
splice
{span}{span}\
Span
(arrayIndex,
length,
value1,
value2)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}It is used to take elements out of an array and replace them with those specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} arrayIndex \{[Object]} length \{[Object]} value1 \{[Object]} value2 {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
It is used to take elements out of an array and replace them with those specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arrayIndex
{Object} length
{Object} value1
{Object} value2
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsplice-Object_Object_Object_Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.splice{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
splice
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Array
]{span}{span:style=
Span
stylefont-weight:
bold;
}
splice
{span}{span}\
Span
(arrayIndex,
length,
value1,
value2,
valueN)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}It is used to take elements out of an array and replace them with those specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} arrayIndex \{[Object]} length \{[Object]} value1 \{[Object]} value2 \{[Object]} valueN {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
It is used to take elements out of an array and replace them with those specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arrayIndex
{Object} length
{Object} value1
{Object} value2
{Object} valueN
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idunshift-Object_Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.unshift{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
unshift
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[Array]{span}{span:style=
Array
Span
stylefont-weight:
bold;
}
unshift
{span}{span}\
Span
(value1,
value2,
valueN)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Places element data at the start of an array.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} value1 \{[Object]} value2 \{[Object]} valueN {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Places element data at the start of an array.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
{Object} value2
{Object} valueN
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Array
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var words = new Array("finish","complete","In","Out");
words.unshift("limit","lines");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Table Row (tr)
classlastDetailRow
Table Cell (td)