topical media & game development

talk show tell print

lib-jquery-learning-code-11-global-functions-jquery.sum.js / js



  jQuery.sum = function(array) {
    var total = 0;
    
    jQuery.each(array, function(index, value) {
      total += value;
    });
    
    return total;
  };
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.