Is there a JavaScript or jQuery equivalent to Python's "sum" built-in function?
<p>Say I have an array-ish container of decimal numbers. I want the sum. In Python I would do this:</p>

<pre><code>x = [1.2, 3.4, 5.6]

sum(x)
</code></pre>

<p>Is there a similarly concise way to do this in JavaScript?</p>
