var arrayProcessTimeout;
arrayProcessTimeout = setTimeout(function() {
console.log('hard');
return null;
}, 50);
That’s my code in Node.js and one would expect it to output hard constantly.. but it doesn’t. It outputs it once and that’s it.
Maybe you want to use
setIntervalinstead ofsetTimeout.