{"size": 40946, "ext": "js", "max_stars_repo_path": "doc/output/Ext.Array.js", "max_stars_repo_name": "kyr0/Extanium2", "max_stars_repo_stars_event_min_datetime": "2018-10-27T16:10:40.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-27T16:10:40.000Z", "max_issues_repo_path": "doc/output/Ext.Array.js", "max_issues_repo_name": "kyr0/Extanium2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "doc/output/Ext.Array.js", "max_forks_repo_name": "kyr0/Extanium2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 40946.0, "max_line_length": 40946, "alphanum_fraction": 0.6627753627}
Ext.data.JsonP.Ext_Array({"extends":null,"enum":null,"html_meta":{},"meta":{},"linenr":1,"inheritable":null,"aliases":{},"singleton":true,"subclasses":[],"component":false,"mixins":[],"inheritdoc":null,"statics":{"cfg":[],"property":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"Array2.html#Ext-Array","filename":"Array.js"}],"mixedInto":[],"superclasses":[],"members":{"cfg":[],"property":[],"css_var":[],"method":[{"meta":{},"owner":"Ext.Array","name":"clean","id":"method-clean","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"contains","id":"method-contains","tagname":"method"},{"meta":{"private":true},"owner":"Ext.Array","name":"difference","id":"method-difference","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"each","id":"method-each","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"encode","id":"method-encode","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"erase","id":"method-erase","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"filter","id":"method-filter","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"filterBy","id":"method-filterBy","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"flatten","id":"method-flatten","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"from","id":"method-from","tagname":"method"},{"meta":{"private":true},"owner":"Ext.Array","name":"include","id":"method-include","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"indexOf","id":"method-indexOf","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"insert","id":"method-insert","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"map","id":"method-map","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"max","id":"method-max","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"merge","id":"method-merge","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"min","id":"method-min","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"pluck","id":"method-pluck","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"push","id":"method-push","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"remove","id":"method-remove","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"removeAt","id":"method-removeAt","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"replace","id":"method-replace","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"sort","id":"method-sort","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"sortBy","id":"method-sortBy","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"sortByProperty","id":"method-sortByProperty","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"toCollection","id":"method-toCollection","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"toObject","id":"method-toObject","tagname":"method"},{"meta":{},"owner":"Ext.Array","name":"union","id":"method-union","tagname":"method"}],"event":[],"css_mixin":[]},"alternateClassNames":[],"override":null,"private":null,"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/Array2.html#Ext-Array' target='_blank'>Array.js</a></div></pre><div class='doc-contents'><p>Singleton class as helper working with Array's.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-clean' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-clean' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-clean' class='name expandable'>clean</a>( <span class='pre'>array</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Removes all items from the array ...</div><div class='long'><p>Removes all items from the array</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to clean</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-contains' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-contains' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-contains' class='name expandable'>contains</a>( <span class='pre'>array, item</span> ) : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a></div><div class='description'><div class='short'>Returns true if the given array contains the given item ...</div><div class='long'><p>Returns true if the given array contains the given item</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to search in</p>\n</div></li><li><span class='pre'>item</span> : Mixed<div class='sub-desc'><p>Item to search for</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-difference' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-difference' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-difference' class='name expandable'>difference</a>( <span class='pre'>array1, array2</span> )<strong class='private signature' >private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array1</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>array2</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-each' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-each' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-each' class='name expandable'>each</a>( <span class='pre'>array, fn, scope</span> ) : Mixed</div><div class='description'><div class='short'>Iterates an array calling the supplied function. ...</div><div class='long'><p>Iterates an array calling the supplied function.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>/Mixed<div class='sub-desc'><p>The array to be iterated. If this\nargument is not really an array, the supplied function is called once.</p>\n</div></li><li><span class='pre'>fn</span> : <a href=\"#!/api/Function\" rel=\"Function\" class=\"docClass\">Function</a><div class='sub-desc'><p>The function to be called with each item. If the\nsupplied function returns false, iteration stops and this method returns\nthe current index. This function is called with the following items:\n{Mixed} item, {Number} index, {Array} allItems</p>\n</div></li><li><span class='pre'>scope</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>The scope (this reference) in which the specified function is executed.\nDefaults to the item at the current index\nwithin the passed array.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>Mixed</span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-encode' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-encode' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-encode' class='name expandable'>encode</a>( <span class='pre'>o</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></div><div class='description'><div class='short'>Encodes an Array as JSON-text ...</div><div class='long'><p>Encodes an Array as JSON-text</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>o</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to encode</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-erase' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-erase' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-erase' class='name expandable'>erase</a>( <span class='pre'>array, startIndex, eraseCount</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Removes all items from the specified index + the eraseCount. ...</div><div class='long'><p>Removes all items from the specified index + the eraseCount.\nReturns the erased array.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to erase items from</p>\n</div></li><li><span class='pre'>startIndex</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>Index to start from</p>\n</div></li><li><span class='pre'>eraseCount</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p> eraseCount</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-filter' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-filter' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-filter' class='name expandable'>filter</a>( <span class='pre'>array, value, property, operator</span> )</div><div class='description'><div class='short'>Filters an array by a given value, the operator ...</div><div class='long'><p>Filters an array by a given value, the operator</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>value</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>property</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>operator</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-filterBy' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-filterBy' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-filterBy' class='name expandable'>filterBy</a>( <span class='pre'>array, comparatorFn, [scope]</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Filters an array by a given comparator function. ...</div><div class='long'><p>Filters an array by a given comparator function.\nReturns a new array holding the matching values.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to filter</p>\n</div></li><li><span class='pre'>comparatorFn</span> : <a href=\"#!/api/Function\" rel=\"Function\" class=\"docClass\">Function</a><div class='sub-desc'><p>Comparator function (first parameter is value)</p>\n</div></li><li><span class='pre'>scope</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>Scope of the comparator function execution</p>\n<p>Defaults to: <code>array</code></p></div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-flatten' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-flatten' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-flatten' class='name expandable'>flatten</a>( <span class='pre'>array, [property]</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Flattens an array - returns a plain value array from\nan object array given. ...</div><div class='long'><p>Flattens an array - returns a plain value array from\nan object array given. The valueProperty parameter specifies,\nwhich property should be used as value property. This can\neither be a property name or JSON-path.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to flatten</p>\n</div></li><li><span class='pre'>property</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Object property name</p>\n<p>Defaults to: <code>value</code></p></div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-from' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-from' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-from' class='name expandable'>from</a>( <span class='pre'>input, [flatten]</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Converts any iterable (numeric indices and a length property) into a true array\nDon't use this on strings. ...</div><div class='long'><p>Converts any iterable (numeric indices and a length property) into a true array\nDon't use this on strings. For strings, use this instead:</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>input</span> : Mixed<div class='sub-desc'><p>Any type to be casted as Array</p>\n</div></li><li><span class='pre'>flatten</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>Indicator if a flat array without keys should be returned</p>\n<p>Defaults to: <code>false</code></p></div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-include' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-include' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-include' class='name expandable'>include</a>( <span class='pre'>array, item</span> )<strong class='private signature' >private</strong></div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>item</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-indexOf' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-indexOf' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-indexOf' class='name expandable'>indexOf</a>( <span class='pre'>ar, o, [from]</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Checks whether or not the specified object exists in the array. ...</div><div class='long'><p>Checks whether or not the specified object exists in the array.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>ar</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Input array to work on</p>\n</div></li><li><span class='pre'>o</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>The object to check for</p>\n</div></li><li><span class='pre'>from</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a> (optional)<div class='sub-desc'><p>The index at which to begin the search</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'><p>The index of o in the array (or -1 if it is not found)</p>\n</div></li></ul></div></div></div><div id='method-insert' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-insert' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-insert' class='name expandable'>insert</a>( <span class='pre'>array, index, items</span> )</div><div class='description'><div class='short'> ...</div><div class='long'>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>index</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>items</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-map' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-map' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-map' class='name expandable'>map</a>( <span class='pre'>array, fn, scope</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Calls the given function for each array item and returns a new Array\nconsisting of the data the function calls return. ...</div><div class='long'><p>Calls the given function for each array item and returns a new Array\nconsisting of the data the function calls return.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>fn</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li><li><span class='pre'>scope</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-max' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-max' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-max' class='name expandable'>max</a>( <span class='pre'>array</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the maximum value of an flat array ...</div><div class='long'><p>Returns the maximum value of an flat array</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to fetch maximum value</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-merge' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-merge' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-merge' class='name expandable'>merge</a>( <span class='pre'>arrays</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Merges a arbitrary count of arrays ...</div><div class='long'><p>Merges a arbitrary count of arrays</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>arrays</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>...<div class='sub-desc'><p>Arrays to merge</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-min' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-min' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-min' class='name expandable'>min</a>( <span class='pre'>array</span> ) : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></div><div class='description'><div class='short'>Returns the minimum value of an flat array ...</div><div class='long'><p>Returns the minimum value of an flat array</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to fetch minimum value</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-pluck' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-pluck' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-pluck' class='name expandable'>pluck</a>( <span class='pre'>array, propertyName</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Plucks the value of the property named of each array item from the array ...</div><div class='long'><p>Plucks the value of the property named of each array item from the array</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to pluck from</p>\n</div></li><li><span class='pre'>propertyName</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'><p>Property to delete form objects in array</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-push' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-push' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-push' class='name expandable'>push</a>( <span class='pre'>array, value</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Pushes an arbitrary count of items on the end of the array given. ...</div><div class='long'><p>Pushes an arbitrary count of items on the end of the array given.\nIf an Array is pushed as value, the items of the array get pushed, not the array itself. (Array gets flatten)</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to push to</p>\n</div></li><li><span class='pre'>value</span> : Mixed<div class='sub-desc'><p>Value to push</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-remove' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-remove' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-remove' class='name expandable'>remove</a>( <span class='pre'>array, item</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Removes the specified item from array ...</div><div class='long'><p>Removes the specified item from array</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to remove from</p>\n</div></li><li><span class='pre'>item</span> : Mixed<div class='sub-desc'><p>Item to remove</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-removeAt' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-removeAt' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-removeAt' class='name expandable'>removeAt</a>( <span class='pre'>array, index</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Removes the item at the specified index ...</div><div class='long'><p>Removes the item at the specified index</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to remove from</p>\n</div></li><li><span class='pre'>index</span> : <a href=\"#!/api/Number\" rel=\"Number\" class=\"docClass\">Number</a><div class='sub-desc'><p>Index to remove at</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-replace' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-replace' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-replace' class='name expandable'>replace</a>( <span class='pre'>array, item1, item2</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Replaces an item with another ...</div><div class='long'><p>Replaces an item with another</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to replace items in</p>\n</div></li><li><span class='pre'>item1</span> : Mixed<div class='sub-desc'><p>Item to be replaced</p>\n</div></li><li><span class='pre'>item2</span> : Mixed<div class='sub-desc'><p>Item which replaces item1</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-sort' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-sort' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-sort' class='name expandable'>sort</a>( <span class='pre'>array, [direction]</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Sorts an Array's (1-dimensional) plain values ...</div><div class='long'><p>Sorts an Array's (1-dimensional) plain values</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to be sorted by object property</p>\n</div></li><li><span class='pre'>direction</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Direction to sort to</p>\n<p>Defaults to: <code>ASC</code></p></div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-sortBy' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-sortBy' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-sortBy' class='name expandable'>sortBy</a>( <span class='pre'>array, comparatorFn</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Sorts an Array by a custom comparator function as seen here:\n\nvar ar = [\n    {objs: [{name: 'Group 1'}, {count: 12}]}...</div><div class='long'><p>Sorts an Array by a custom comparator function as seen here:</p>\n\n<pre><code>var ar = [\n    {objs: [{name: 'Group 1'}, {count: 12}]},\n    {objs: [{name: 'Group 2'}, {count: 200}]},\n    {objs: [{name: 'Group 3'}, {count: 300}]}\n];\n\n<a href=\"#!/api/Ext.Array-method-sortBy\" rel=\"Ext.Array-method-sortBy\" class=\"docClass\">Ext.Array.sortBy</a>(ar, function(value1, value2) {\n    // DESC; for ASC use compare() instead of compareInverted()!\n    return <a href=\"#!/api/Ext.util.Comparator-method-compareInverted\" rel=\"Ext.util.Comparator-method-compareInverted\" class=\"docClass\">Ext.util.Comparator.compareInverted</a>(\n        value1['objs'][0]['name'],\n        value2['objs'][0]['name']\n    );\n});\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to sort</p>\n</div></li><li><span class='pre'>comparatorFn</span> : <a href=\"#!/api/Function\" rel=\"Function\" class=\"docClass\">Function</a><div class='sub-desc'><p>Comparator function to use.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-sortByProperty' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-sortByProperty' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-sortByProperty' class='name expandable'>sortByProperty</a>( <span class='pre'>array, [direction], [property]</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Sorts an Array by a property when the Array consists of Object items. ...</div><div class='long'><p>Sorts an Array by a property when the Array consists of Object items.</p>\n\n<pre><code>var ar = [{vorname: 'Aron'}, {vorname: 'Andre'}, {vorname: 'Bernd'}];\n<a href=\"#!/api/Ext.Array-method-sortByProperty\" rel=\"Ext.Array-method-sortByProperty\" class=\"docClass\">Ext.Array.sortByProperty</a>(ar, 'vorname', 'DESC');\n</code></pre>\n\n<p>Sorting of deeply-structured data is also possible:</p>\n\n<pre><code>var ar = [{foo: [{bar: 123}]}, {foo: [{bar: 345}]}, {foo: [{bar: 789}]}];\n<a href=\"#!/api/Ext.Array-method-sortByProperty\" rel=\"Ext.Array-method-sortByProperty\" class=\"docClass\">Ext.Array.sortByProperty</a>(ar, 'foo.0.bar', 'DESC');\n</code></pre>\n\n<p>If you want to accomplish multi-property sorting, try Ext.toCollection(ar).sort(...)!</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to be sorted by object property</p>\n</div></li><li><span class='pre'>direction</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Direction to sort to</p>\n<p>Defaults to: <code>ASC</code></p></div></li><li><span class='pre'>property</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Name/Path of the object property to be sorted</p>\n<p>Defaults to: <code>plain array item</code></p></div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-toCollection' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-toCollection' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-toCollection' class='name expandable'>toCollection</a>( <span class='pre'>array</span> ) : <a href=\"#!/api/Ext.Collection\" rel=\"Ext.Collection\" class=\"docClass\">Ext.Collection</a></div><div class='description'><div class='short'>Returns a collection for an array given ...</div><div class='long'><p>Returns a collection for an array given</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to fetch a collection for</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Collection\" rel=\"Ext.Collection\" class=\"docClass\">Ext.Collection</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-toObject' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-toObject' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-toObject' class='name expandable'>toObject</a>( <span class='pre'>array, [keyProperty], [valueProperty]</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></div><div class='description'><div class='short'>Returns an object for an array given. ...</div><div class='long'><p>Returns an object for an array given.\nBy default, this method returns an object holding index -> value association data.\nBut you can specify property names/JSON-path for key and value to be filled customized\nwhen array items are objects.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>array</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>Array to transform</p>\n</div></li><li><span class='pre'>keyProperty</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Name or JSON-path to the key property in the array items</p>\n</div></li><li><span class='pre'>valueProperty</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> (optional)<div class='sub-desc'><p>Name or JSON-path to the value property in the array items</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-union' class='member  not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.Array'>Ext.Array</span><br/><a href='source/Array2.html#Ext-Array-method-union' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.Array-method-union' class='name expandable'>union</a>( <span class='pre'>arrays</span> ) : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></div><div class='description'><div class='short'>Merges a arbitrary count of arrays but omits duplicate items ...</div><div class='long'><p>Merges a arbitrary count of arrays but omits duplicate items</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>arrays</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>...<div class='sub-desc'><p>Arrays to merge</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div></div></div></div></div>","parentMixins":[],"name":"Ext.Array","uses":[],"id":"class-Ext.Array","tagname":"class","requires":[]});