Child pages
  • Array

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}{sub-section}\\ {table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#length] Get the length of the array.{td}{tr}{tbody}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{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, \[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, \[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, \[thisObject\]) Runs a function on every item in the array.{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}[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, \[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, \[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, \[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, \[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, \[thisObject\]) Runs a function on items in the array while that function returns false.{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, \[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:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=length|class=node}{tr:id=name}{td}h6.length{td}{tr}{tr:id=des}{td}{sub-section:length_des|text=|trigger=button}{sub-section}{sub-section:length_des|trigger=none|class=sIndent}Get the length of the array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:length_snc|text=|trigger=button}{sub-section}{sub-section:length_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:length_prs|text=|trigger=button}{sub-section}{sub-section:length_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:length_ret|text=|trigger=button}{sub-section}{sub-section:length_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:length_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:length_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:length_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:length_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:length_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:length_sam|trigger=none}{code:language=javascript} array.length {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=concat|class=node}{tr:id=name}{td}h6.concat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}concat{span}{span:id=iets|style=float: left;}\(value1, \[value2\], \[valueN\]){span}{td}{tr}{tr:id=des}{td}{sub-section:concat_des|text=|trigger=button}{sub-section}{sub-section:concat_des|trigger=none|class=sIndent}Returns a new array comprised of this array joined with other array(s) and/or value(s).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:concat_snc|text=|trigger=button}{sub-section}{sub-section:concat_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:concat_prs|text=|trigger=button}{sub-section}{sub-section:concat_prs|trigger=none|class=sIndent}\{[Object]} value1 \{[Object]} \[value2\] \{[Object]} \[valueN\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:concat_ret|text=|trigger=button}{sub-section}{sub-section:concat_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:concat_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:concat_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:concat_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:concat_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:concat_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:concat_sam|trigger=none}{code:language=javascript} array.concat(); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=every|class=node}{tr:id=name}{td}h6.every{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}every{span}{span:id=iets|style=float: left;}\(callback, \[thisObject\]){span}{td}{tr}{tr:id=des}{td}{sub-section:every_des|text=|trigger=button}{sub-section}{sub-section:every_des|trigger=none|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:every_snc|text=|trigger=button}{sub-section}{sub-section:every_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:every_prs|text=|trigger=button}{sub-section}{sub-section:every_prs|trigger=none|class=sIndent}\{[Function]} callback \{[Array]} \[thisObject\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:every_ret|text=|trigger=button}{sub-section}{sub-section:every_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:every_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:every_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:every_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:every_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:every_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:every_sam|trigger=none}{code:language=javascript} 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=filter|class=node}{tr:id=name}{td}h6.filter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}filter{span}{span:id=iets|style=float: left;}\(callback, \[thisObject\]){span}{td}{tr}{tr:id=des}{td}{sub-section:filter_des|text=|trigger=button}{sub-section}{sub-section:filter_des|trigger=none|class=sIndent}Runs a function on every item in the array and returns an array of all items for which the function returns true.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:filter_snc|text=|trigger=button}{sub-section}{sub-section:filter_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:filter_prs|text=|trigger=button}{sub-section}{sub-section:filter_prs|trigger=none|class=sIndent}\{[Function]} callback \{[Array]} \[thisObject\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:filter_ret|text=|trigger=button}{sub-section}{sub-section:filter_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:filter_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:filter_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:filter_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:filter_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:filter_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:filter_sam|trigger=none}{code:language=javascript} var a1 = ['a', 10, 'b', 20, 'c', 30]; var a2 = a1.filter(function(item) { return typeof item == 'number'; }); application.output(a2); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=forEach|class=node}{tr:id=name}{td}h6.forEach{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}forEach{span}{span:id=iets|style=float: left;}\(callback, \[thisObject\]){span}{td}{tr}{tr:id=des}{td}{sub-section:forEach_des|text=|trigger=button}{sub-section}{sub-section:forEach_des|trigger=none|class=sIndent}Runs a function on every item in the array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:forEach_snc|text=|trigger=button}{sub-section}{sub-section:forEach_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:forEach_prs|text=|trigger=button}{sub-section}{sub-section:forEach_prs|trigger=none|class=sIndent}\{[Function]} callback \{[Array]} \[thisObject\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:forEach_ret|text=|trigger=button}{sub-section}{sub-section:forEach_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:forEach_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:forEach_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:forEach_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:forEach_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:forEach_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:forEach_sam|trigger=none}{code:language=javascript} function printThemOut(params) { application.output(params);} var a = ['a', 'b', 'c']; a.forEach(printThemOut); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=indexOf|class=node}{tr:id=name}{td}h6.indexOf{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}indexOf{span}{span:id=iets|style=float: left;}\(searchElement, \[fromIndex\]){span}{td}{tr}{tr:id=des}{td}{sub-section:indexOf_des|text=|trigger=button}{sub-section}{sub-section:indexOf_des|trigger=none|class=sIndent}Returns the first index at which a given element can be found in the array, or \-1 if it is not present.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:indexOf_snc|text=|trigger=button}{sub-section}{sub-section:indexOf_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:indexOf_prs|text=|trigger=button}{sub-section}{sub-section:indexOf_prs|trigger=none|class=sIndent}\{[Object]} searchElement \{[Number]} \[fromIndex\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:indexOf_ret|text=|trigger=button}{sub-section}{sub-section:indexOf_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:indexOf_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:indexOf_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:indexOf_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:indexOf_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:indexOf_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:indexOf_sam|trigger=none}{code:language=javascript} var a = ['a', 'b', 'a', 'b', 'a']; application.output(a.indexOf('b')); application.output(a.indexOf('b', 2)); application.output(a.indexOf('z')); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=join|class=node}{tr:id=name}{td}h6.join{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}join{span}{span:id=iets|style=float: left;}\(delimiter){span}{td}{tr}{tr:id=des}{td}{sub-section:join_des|text=|trigger=button}{sub-section}{sub-section:join_des|trigger=none|class=sIndent}Puts all elements in the array into a string, separating each element with the specified delimiter{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:join_snc|text=|trigger=button}{sub-section}{sub-section:join_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:join_prs|text=|trigger=button}{sub-section}{sub-section:join_prs|trigger=none|class=sIndent}\{[String]} delimiter {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:join_ret|text=|trigger=button}{sub-section}{sub-section:join_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:join_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:join_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:join_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:join_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:join_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:join_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); var jwords = words.join(";"); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=lastIndexOf|class=node}{tr:id=name}{td}h6.lastIndexOf{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}lastIndexOf{span}{span:id=iets|style=float: left;}\(searchElement, \[fromIndex\]){span}{td}{tr}{tr:id=des}{td}{sub-section:lastIndexOf_des|text=|trigger=button}{sub-section}{sub-section:lastIndexOf_des|trigger=none|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:lastIndexOf_snc|text=|trigger=button}{sub-section}{sub-section:lastIndexOf_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:lastIndexOf_prs|text=|trigger=button}{sub-section}{sub-section:lastIndexOf_prs|trigger=none|class=sIndent}\{[Object]} searchElement \{[Number]} \[fromIndex\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:lastIndexOf_ret|text=|trigger=button}{sub-section}{sub-section:lastIndexOf_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:lastIndexOf_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:lastIndexOf_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:lastIndexOf_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:lastIndexOf_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:lastIndexOf_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:lastIndexOf_sam|trigger=none}{code:language=javascript} 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=map|class=node}{tr:id=name}{td}h6.map{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}map{span}{span:id=iets|style=float: left;}\(callback, \[thisObject\]){span}{td}{tr}{tr:id=des}{td}{sub-section:map_des|text=|trigger=button}{sub-section}{sub-section:map_des|trigger=none|class=sIndent}Runs a function on every item in the array and returns the results in an array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:map_snc|text=|trigger=button}{sub-section}{sub-section:map_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:map_prs|text=|trigger=button}{sub-section}{sub-section:map_prs|trigger=none|class=sIndent}\{[Object]} callback \{[Array]} \[thisObject\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:map_ret|text=|trigger=button}{sub-section}{sub-section:map_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:map_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:map_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:map_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:map_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:map_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:map_sam|trigger=none}{code:language=javascript} var a = ['a', 'b', 'c']; var a2 = a.map(function(item) { return item.toUpperCase(); }); application.output(a2); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=pop|class=node}{tr:id=name}{td}h6.pop{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}pop{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:pop_des|text=|trigger=button}{sub-section}{sub-section:pop_des|trigger=none|class=sIndent}Pops the last string off the array and returns it.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:pop_snc|text=|trigger=button}{sub-section}{sub-section:pop_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:pop_prs|text=|trigger=button}{sub-section}{sub-section:pop_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:pop_ret|text=|trigger=button}{sub-section}{sub-section:pop_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:pop_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:pop_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:pop_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:pop_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:pop_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:pop_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); var lastword = words.pop(); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=push|class=node}{tr:id=name}{td}h6.push{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}push{span}{span:id=iets|style=float: left;}\(value1, \[value2\], \[valueN\]){span}{td}{tr}{tr:id=des}{td}{sub-section:push_des|text=|trigger=button}{sub-section}{sub-section:push_des|trigger=none|class=sIndent}Mutates an array by appending the given elements and returning the new length of the array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:push_snc|text=|trigger=button}{sub-section}{sub-section:push_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:push_prs|text=|trigger=button}{sub-section}{sub-section:push_prs|trigger=none|class=sIndent}\{[Object]} value1 \{[Object]} \[value2\] \{[Object]} \[valueN\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:push_ret|text=|trigger=button}{sub-section}{sub-section:push_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:push_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:push_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:push_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:push_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:push_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:push_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete"); words.push("In","Out"); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=reverse|class=node}{tr:id=name}{td}h6.reverse{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}reverse{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:reverse_des|text=|trigger=button}{sub-section}{sub-section:reverse_des|trigger=none|class=sIndent}Puts array elements in reverse order.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:reverse_snc|text=|trigger=button}{sub-section}{sub-section:reverse_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:reverse_prs|text=|trigger=button}{sub-section}{sub-section:reverse_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:reverse_ret|text=|trigger=button}{sub-section}{sub-section:reverse_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:reverse_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:reverse_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:reverse_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:reverse_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:reverse_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:reverse_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); words.reverse(); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=shift|class=node}{tr:id=name}{td}h6.shift{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}shift{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:shift_des|text=|trigger=button}{sub-section}{sub-section:shift_des|trigger=none|class=sIndent}Decreases array element size by one by shifting the first element off the array and returning it.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:shift_snc|text=|trigger=button}{sub-section}{sub-section:shift_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:shift_prs|text=|trigger=button}{sub-section}{sub-section:shift_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:shift_ret|text=|trigger=button}{sub-section}{sub-section:shift_ret|trigger=none|class=sIndent}[Object]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:shift_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:shift_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:shift_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:shift_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:shift_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:shift_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); words.shift(); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=slice|class=node}{tr:id=name}{td}h6.slice{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}slice{span}{span:id=iets|style=float: left;}\(begin, \[end\]){span}{td}{tr}{tr:id=des}{td}{sub-section:slice_des|text=|trigger=button}{sub-section}{sub-section:slice_des|trigger=none|class=sIndent}The slice method creates a new array from a selected section of an array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:slice_snc|text=|trigger=button}{sub-section}{sub-section:slice_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:slice_prs|text=|trigger=button}{sub-section}{sub-section:slice_prs|trigger=none|class=sIndent}\{[Object]} begin \{[Object]} \[end\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:slice_ret|text=|trigger=button}{sub-section}{sub-section:slice_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:slice_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:slice_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:slice_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:slice_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:slice_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:slice_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); var nwords1 = words.slice(3, 5); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=some|class=node}{tr:id=name}{td}h6.some{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}some{span}{span:id=iets|style=float: left;}\(callback, \[thisObject\]){span}{td}{tr}{tr:id=des}{td}{sub-section:some_des|text=|trigger=button}{sub-section}{sub-section:some_des|trigger=none|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:some_snc|text=|trigger=button}{sub-section}{sub-section:some_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:some_prs|text=|trigger=button}{sub-section}{sub-section:some_prs|trigger=none|class=sIndent}\{[Function]} callback \{[Array]} \[thisObject\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:some_ret|text=|trigger=button}{sub-section}{sub-section:some_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:some_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:some_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:some_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:some_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:some_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:some_sam|trigger=none}{code:language=javascript} 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sort|class=node}{tr:id=name}{td}h6.sort{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}sort{span}{span:id=iets|style=float: left;}\(\[function\]){span}{td}{tr}{tr:id=des}{td}{sub-section:sort_des|text=|trigger=button}{sub-section}{sub-section:sort_des|trigger=none|class=sIndent}Sorts the array elements in dictionary order or using a compare function passed to the method.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sort_snc|text=|trigger=button}{sub-section}{sub-section:sort_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sort_prs|text=|trigger=button}{sub-section}{sub-section:sort_prs|trigger=none|class=sIndent}\{[Function]} \[function\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sort_ret|text=|trigger=button}{sub-section}{sub-section:sort_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sort_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sort_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sort_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sort_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sort_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sort_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); words.sort(); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=splice|class=node}{tr:id=name}{td}h6.splice{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}splice{span}{span:id=iets|style=float: left;}\(arrayIndex, length, \[value1\], \[value2\], \[valueN\]){span}{td}{tr}{tr:id=des}{td}{sub-section:splice_des|text=|trigger=button}{sub-section}{sub-section:splice_des|trigger=none|class=sIndent}It is used to take elements out of an array and replace them with those specified.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:splice_snc|text=|trigger=button}{sub-section}{sub-section:splice_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:splice_prs|text=|trigger=button}{sub-section}{sub-section:splice_prs|trigger=none|class=sIndent}\{[Object]} arrayIndex \{[Object]} length \{[Object]} \[value1\] \{[Object]} \[value2\] \{[Object]} \[valueN\] {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:splice_ret|text=|trigger=button}{sub-section}{sub-section:splice_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:splice_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:splice_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:splice_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:splice_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:splice_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:splice_sam|trigger=none}{code:language=javascript} var words = new Array("limit","lines","finish","complete","In","Out"); var nwords1 = words.splice(3, 2, "done", "On"); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=unshift|class=node}{tr:id=name}{td}h6.unshift{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Array]{span}{span:id=iets|style=float: left; font-weight: bold;}unshift{span}{span:id=iets|style=float: left;}\(value1, value2, valueN){span}{td}{tr}{tr:id=des}{td}{sub-section:unshift_des|text=|trigger=button}{sub-section}{sub-section:unshift_des|trigger=none|class=sIndent}Places element data at the start of an array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:unshift_snc|text=|trigger=button}{sub-section}{sub-section:unshift_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:unshift_prs|text=|trigger=button}{sub-section}{sub-section:unshift_prs|trigger=none|class=sIndent}\{[Object]} value1 \{[Object]} value2 \{[Object]} valueN {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:unshift_ret|text=|trigger=button}{sub-section}{sub-section:unshift_ret|trigger=none|class=sIndent}[Array]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:unshift_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:unshift_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:unshift_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:unshift_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:unshift_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:unshift_sam|trigger=none}{code:language=javascript} var words = new Array("finish","complete","In","Out"); words.unshift("limit","lines"); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Wiki Markup
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.Reduces the array to a single value by executing a provided function for each value of the array (from left-to-right).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]

dessIndent
Get an element by index.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRowlengthname

length

dessIndent
Get 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)

dessIndent
Returns 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
lastDetailRowconcatname

concat(value1, value2)

dessIndent
Returns 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)

dessIndent
Returns 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)

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

Parameters

sIndentcallback ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
everyname

every(callback, thisObject)

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

Parameters

sIndentcallback ;thisObject ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
filtername

filter(callback)

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

Parameters

sIndentcallback ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
filtername

filter(callback, thisObject)

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

Parameters

sIndentcallback ;thisObject ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
forEachname

forEach(callback)

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

Parameters

sIndentcallback ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
forEachname

forEach(callback, thisObject)

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

Parameters

sIndentcallback ;thisObject ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
indexOfname

indexOf(searchElement)

dessIndent
Returns 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)

dessIndent
Returns 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)

dessIndent
Checks 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)

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

Parameters

sIndentdelimiter ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
lastIndexOfname

lastIndexOf(searchElement)

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

Parameters

sIndentsearchElement ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
lastIndexOfname

lastIndexOf(searchElement, fromIndex)

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

Parameters

sIndentsearchElement ;fromIndex ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
mapname

map(callback)

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

Parameters

sIndentcallback ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
mapname

map(callback, thisObject)

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

Parameters

sIndentcallback ;thisObject ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
popname

pop()

dessIndent
Pops 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)

dessIndent
Mutates 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)

dessIndent
Mutates 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)

dessIndent
Mutates 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
reducename

reduce(f, initialValue)

dessIndent
Reduces the array to a single value by executing a provided function for each value of the array (from left-to-right).
prs

Parameters

sIndentfFunction to execute on each element in the array, taking four arguments: -accumulator: accumulates the callback's return values; it is the accumulated value previously returned in the last invocation of the callback, or initialValue, if supplied (see below). -currentValue: the current element being processed in the array. -currentIndex (Optional): the index of the current element being processed in the array (starts at index 0, if an initialValue is provided, and at index 1 otherwise) -array (Optional): the array reduce() was called upon.initialValueValue to use as the first argument to the first call of the callback. If no initial value is supplied, the first element in the array will be used.
ret

Returns

sIndent Object
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
reversename

reverse()

dessIndent
Puts array elements in reverse order.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
shiftname

shift()

dessIndent
Decreases 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)

dessIndent
The 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)

dessIndent
The 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)

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

Parameters

sIndentcallback ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
somename

some(callback, thisObject)

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

Parameters

sIndentcallback ;thisObject ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
sortname

sort()

dessIndent
Sorts 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)

dessIndent
Sorts 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)

dessIndent
It 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)

dessIndent
It 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)

dessIndent
It 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)

dessIndent
It 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)

dessIndent
Places 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