A Tale of Two Functions
I have one function that fills an array up to a specified value:
function getNumberArray(maxValue) { const a
FYI this question is ancient in internet terms and generators have caught up (at least when tested in Chrome) https://jsperf.com/generator-vs-loops1