static/ext/src/lang/Array.js
function(array) {
            var sum = 0,
                i, ln, item;

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

                sum += item;
            }

            return sum;
        }
function(array) {
            var sum = 0,
                i, ln, item;

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

                sum += item;
            }

            return sum;
        }
Calculates the sum of all items in the given array.

@param {Array} array The Array to calculate the sum value of.
@return {Number} The sum.