JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.github.com/AndrewWhitaker/jQuery-Aggregate/master/dist/jQuery-Aggregate.min.js"></script>
Total: <span id="total"></span>
JavaScript
var total = $.sum([0, 6, 6, 17, 4, 6, 0, 19, 4]);
$("#total").text(total);