JSFiddle - React, Tailwind, and code Playground
by Dogbert
HTML
<script src="http://google.github.io/traceur-compiler/bin/traceur.js"></script>
<script src="http://google.github.io/traceur-compiler/src/bootstrap.js"></script>
<script type="module">
function* sup(n) {
for(var i = 1; i < n; i++) {
yield i;
}
}
function count(nn) {
start = +new Date
var sum = 0
for(var n of sup(nn)) {
sum += n
}
console.log({nn:nn, sum:sum, time:(+new Date - start)});
return sum;
}
count(4000000)
</script>