static/ext/src/lang/Array.js
function(array) {
            var worker = [];

            function rFlatten(a) {
                var i, ln, v;

                for (i = 0, ln = a.length; i < ln; i++) {
                    v = a[i];

                    if (Ext.isArray(v)) {
                        rFlatten(v);
                    } else {
                        worker.push(v);
                    }
                }

                return worker;
            }

            return rFlatten(array);
        }
function(array) {
            var worker = [];

            function rFlatten(a) {
                var i, ln, v;

                for (i = 0, ln = a.length; i < ln; i++) {
                    v = a[i];

                    if (Ext.isArray(v)) {
                        rFlatten(v);
                    } else {
                        worker.push(v);
                    }
                }

                return worker;
            }

            return rFlatten(array);
        }
function ( array ) { var worker = [ ] ; function rFlatten ( a ) { var i , ln , v ; for ( i = 0 , ln = a . length ; i < ln ; i ++ ) { v = a [ i ] ; if ( Ext . isArray ( v ) ) { rFlatten ( v ) ; } else { worker . push ( v ) ; } } return worker ; } return rFlatten ( array ) ; }
Recursively flattens into 1-d Array. Injects Arrays inline.

@param {Array} array The array to flatten
@return {Array} The 1-d array.
Recursively flattens into 1 - d Array . Injects Arrays inline .