Child pages
  • Array

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Property SummaryGet an element by index.Get the length of the array.

servoy sSummary12%30%58%height: 30px;3Methods SummaryReturns a new array comprised of this array joined with other array(s) and/or value(s).Returns a new array comprised of this array joined with other array(s) and/or value(s).Returns a new array comprised of this array joined with other array(s) and/or value(s).Runs a function on items in the array while that function is returning true.Runs a function on items in the array while that function is returning true.Runs a function on every item in the array and returns an array of all items for which the function returns true.Runs a function on every item in the array and returns an array of all items for which the function returns true.voidRuns a function (callback) on every item in the array.voidRuns a function (callback) on every item in the array.Returns the first index at which a given element can be found in the array, or -1 if it is not present.Returns the first index at which a given element can be found in the array, or -1 if it is not present.Checks whether an object is an array or not.Puts all elements in the array into a string, separating each element with the specified delimiterReturns the last index at which a given element can be found in the array, or -1 if it is not present.Returns the last index at which a given element can be found in the array, or -1 if it is not present.Runs a function on every item in the array and returns the results in an array.Runs a function on every item in the array and returns the results in an array.Pops the last string off the array and returns it.Mutates an array by appending the given elements and returning the new length of the array.Mutates an array by appending the given elements and returning the new length of the array.Mutates an array by appending the given elements and returning the new length of the array.Puts array elements in reverse order.Decreases array element size by one by shifting the first element off the array and returning it.The slice method creates a new array from a selected section of an array.The slice method creates a new array from a selected section of an array.Runs a function on items in the array while that function returns false.Runs a function on items in the array while that function returns false.Sorts the array elements in dictionary order or using a compare function passed to the method.Sorts the array elements in dictionary order or using a compare function passed to the method.It is used to take elements out of an array and replace them with those specified.It is used to take elements out of an array and replace them with those specified.It is used to take elements out of an array and replace them with those specified.It is used to take elements out of an array and replace them with those specified.Places element data at the start of an array.

propertyservoy sDetail2100%height:30px2Property Details[index]name

[index]

dessIndentGet an element by index.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow lengthname

length

dessIndentGet the length of the array.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 

functionservoy sDetail2100%height:30px2Methods Detailsconcatname

concat(value1)

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

Parameters

sIndentvalue1 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow concatname

concat(value1, value2)

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

Parameters

sIndentvalue1 value2 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
concatname

concat(value1, value2, valueN)

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

Parameters

sIndentvalue1 value2 valueN 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
everyname

every(callback)

dessIndentRuns 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.prs

Parameters

sIndentcallback 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
everyname

every(callback, thisObject)

dessIndentRuns 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.prs

Parameters

sIndentcallback thisObject 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
filtername

filter(callback)

dessIndentRuns 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.prs

Parameters

sIndentcallback 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
filtername

filter(callback, thisObject)

dessIndentRuns 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.prs

Parameters

sIndentcallback thisObject 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
forEachname

forEach(callback)

dessIndentRuns 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.prs

Parameters

sIndentcallback 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
forEachname

forEach(callback, thisObject)

dessIndentRuns 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.prs

Parameters

sIndentcallback thisObject 
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
indexOfname

indexOf(searchElement)

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

Parameters

sIndentsearchElement 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
indexOfname

indexOf(searchElement, fromIndex)

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

Parameters

sIndentsearchElement fromIndex 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
isArrayname

isArray(obj)

dessIndentChecks whether an object is an array or not.prs

Parameters

sIndentobj 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
joinname

join(delimiter)

dessIndentPuts all elements in the array into a string, separating each element with the specified delimiterprs

Parameters

sIndentdelimiter 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
lastIndexOfname

lastIndexOf(searchElement)

dessIndentReturns 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.prs

Parameters

sIndentsearchElement 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
lastIndexOfname

lastIndexOf(searchElement, fromIndex)

dessIndentReturns 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.prs

Parameters

sIndentsearchElement fromIndex 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
mapname

map(callback)

dessIndentRuns 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.prs

Parameters

sIndentcallback 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
mapname

map(callback, thisObject)

dessIndentRuns 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.prs

Parameters

sIndentcallback thisObject 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
popname

pop()

dessIndentPops the last string off the array and returns it.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
pushname

push(value1)

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

Parameters

sIndentvalue1 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
pushname

push(value1, value2)

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

Parameters

sIndentvalue1 value2 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
pushname

push(value1, value2, valueN)

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

Parameters

sIndentvalue1 value2 valueN 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
reversename

reverse()

dessIndentPuts array elements in reverse order.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
shiftname

shift()

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

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
slicename

slice(begin)

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

Parameters

sIndentbegin 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
slicename

slice(begin, end)

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

Parameters

sIndentbegin end 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
somename

some(callback)

dessIndentRuns 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.prs

Parameters

sIndentcallback 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
somename

some(callback, thisObject)

dessIndentRuns 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.prs

Parameters

sIndentcallback thisObject 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
sortname

sort()

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

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
sortname

sort(function)

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

Parameters

sIndentfunction 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
splicename

splice(arrayIndex, length)

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

Parameters

sIndentarrayIndex length 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
splicename

splice(arrayIndex, length, value1)

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

Parameters

sIndentarrayIndex length value1 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
splicename

splice(arrayIndex, length, value1, value2)

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

Parameters

sIndentarrayIndex length value1 value2 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
splicename

splice(arrayIndex, length, value1, value2, valueN)

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

Parameters

sIndentarrayIndex length value1 value2 valueN 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
unshiftname

unshift(value1, value2, valueN)

dessIndentPlaces element data at the start of an array.prs

Parameters

sIndentvalue1 value2 valueN 
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow