A Tale of Two Functions
I have one function that fills an array up to a specified value:
function getNumberArray(maxValue) { const a
Try replacing the 'let' in the generator function with a function scoped 'var'. It seems that the 'let' inside the loop incurs a lot of overhead. Only use let if you absolutely have to.
let