- "private": false,
- "static": false,
- "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/lang/Array.js",
- "linenr": 556,
- "html_filename": "Array2.html",
- "href": "Array2.html#Ext-Array-method-difference",
- "shortDoc": "<p>Perform a set difference A-B by subtracting all items in array B from array A.</p>\n"
- },
- {
- "tagname": "method",
- "name": "each",
- "member": "Ext.Array",
- "doc": "<p>Iterates an array or an iterable value and invoke the given callback function for each item.</p>\n\n<pre><code>var countries = ['Vietnam', 'Singapore', 'United States', 'Russia'];\n\nExt.Array.each(countries, function(name, index, countriesItSelf) {\n console.log(name);\n});\n\nvar sum = function() {\n var sum = 0;\n\n Ext.Array.each(arguments, function(value) {\n sum += value;\n });\n\n return sum;\n};\n\nsum(1, 2, 3); // returns 6\n</code></pre>\n\n<p>The iteration can be stopped by returning false in the function callback.</p>\n\n<pre><code>Ext.Array.each(countries, function(name, index, countriesItSelf) {\n if (name === 'Singapore') {\n return false; // break here\n }\n});\n</code></pre>\n",
- "params": [
- {
- "type": "Array/NodeList/Mixed",
- "name": "iterable",
- "doc": "<p>The value to be iterated. If this\nargument is not iterable, the callback function is called once.</p>\n",
- "optional": false
- },
- {
- "type": "Function",
- "name": "fn",
- "doc": "<p>The callback function. If it returns false, the iteration stops and this method returns\nthe current <code>index</code>. Arguments passed to this callback function are:</p>\n\n<ul>\n<li><code>item</code>: {Mixed} The item at the current <code>index</code> in the passed <code>array</code></li>\n<li><code>index</code>: {Number} The current <code>index</code> within the <code>array</code></li>\n<li><code>allItems</code>: {Array/NodeList/Mixed} The <code>array</code> passed as the first argument to <code>Ext.Array.each</code></li>\n</ul>\n\n",
- "optional": false
- },
- {
- "type": "Object",
- "name": "scope",
- "doc": "<p>(Optional) The scope (<code>this</code> reference) in which the specified function is executed.</p>\n",
- "optional": false
- },
- {
+ {
+ "deprecated": null,
+ "alias": null,
+ "protected": false,
+ "tagname": "method",
+ "href": "Array2.html#Ext-Array-method-each",
+ "shortDoc": "Iterates an array or an iterable value and invoke the given callback function for each item. ...",
+ "static": false,
+ "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/Array.js",
+ "private": false,
+ "params": [
+ {
+ "type": "Array/NodeList/Mixed",
+ "optional": false,
+ "doc": "<p>The value to be iterated. If this\nargument is not iterable, the callback function is called once.</p>\n",
+ "name": "iterable"
+ },
+ {
+ "type": "Function",
+ "optional": false,
+ "doc": "<p>The callback function. If it returns false, the iteration stops and this method returns\nthe current <code>index</code>. Arguments passed to this callback function are:</p>\n\n<ul>\n<li><code>item</code> : Mixed - The item at the current <code>index</code> in the passed <code>array</code></li>\n<li><code>index</code> : Number - The current <code>index</code> within the <code>array</code></li>\n<li><code>allItems</code> : Array/NodeList/Mixed - The <code>array</code> passed as the first argument to <code>Ext.Array.each</code></li>\n</ul>\n\n",
+ "name": "fn"
+ },
+ {
+ "type": "Object",
+ "optional": false,
+ "doc": "<p>(Optional) The scope (<code>this</code> reference) in which the specified function is executed.</p>\n",
+ "name": "scope"
+ },
+ {
+ "type": "Boolean",
+ "optional": false,
+ "doc": "<p>(Optional) Reverse the iteration order (loop from the end to the beginning)\nDefaults false</p>\n",
+ "name": "reverse"
+ }
+ ],
+ "name": "each",
+ "owner": "Ext.Array",
+ "doc": "<p>Iterates an array or an iterable value and invoke the given callback function for each item.</p>\n\n<pre><code>var countries = ['Vietnam', 'Singapore', 'United States', 'Russia'];\n\nExt.Array.each(countries, function(name, index, countriesItSelf) {\n console.log(name);\n});\n\nvar sum = function() {\n var sum = 0;\n\n Ext.Array.each(arguments, function(value) {\n sum += value;\n });\n\n return sum;\n};\n\nsum(1, 2, 3); // returns 6\n</code></pre>\n\n<p>The iteration can be stopped by returning false in the function callback.</p>\n\n<pre><code>Ext.Array.each(countries, function(name, index, countriesItSelf) {\n if (name === 'Singapore') {\n return false; // break here\n }\n});\n</code></pre>\n\n<p><a href=\"#/api/Ext-method-each\" rel=\"Ext-method-each\" class=\"docClass\">Ext.each</a> is alias for <a href=\"#/api/Ext.Array-method-each\" rel=\"Ext.Array-method-each\" class=\"docClass\">Ext.Array.each</a></p>\n",
+ "linenr": 188,
+ "return": {